From 2975a7986b0c5410de2e323a384a77b3699b48c2 Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Tue, 4 Jul 2023 13:47:18 +0530 Subject: [PATCH] drivers: wifi: Fix the build failure The prototype has changed in Zephyr, this commit only fixes the build failure, doesn't implement the feature, it will be done in a separate commit. Signed-off-by: Chaitanya Tata --- drivers/wifi/nrf700x/zephyr/inc/zephyr_wifi_mgmt.h | 3 ++- drivers/wifi/nrf700x/zephyr/src/zephyr_wifi_mgmt.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/wifi/nrf700x/zephyr/inc/zephyr_wifi_mgmt.h b/drivers/wifi/nrf700x/zephyr/inc/zephyr_wifi_mgmt.h index 2f377af2c73f..e597a3ce0f23 100644 --- a/drivers/wifi/nrf700x/zephyr/inc/zephyr_wifi_mgmt.h +++ b/drivers/wifi/nrf700x/zephyr/inc/zephyr_wifi_mgmt.h @@ -23,7 +23,8 @@ struct twt_interval_float { unsigned char exponent; }; -int wifi_nrf_disp_scan_zep(const struct device *dev, scan_result_cb_t cb); +int wifi_nrf_disp_scan_zep(const struct device *dev, struct wifi_scan_params *params, + scan_result_cb_t cb); enum wifi_nrf_status wifi_nrf_disp_scan_res_get_zep(struct wifi_nrf_vif_ctx_zep *vif_ctx_zep); diff --git a/drivers/wifi/nrf700x/zephyr/src/zephyr_wifi_mgmt.c b/drivers/wifi/nrf700x/zephyr/src/zephyr_wifi_mgmt.c index 293c8257c1a2..3f385e40a197 100644 --- a/drivers/wifi/nrf700x/zephyr/src/zephyr_wifi_mgmt.c +++ b/drivers/wifi/nrf700x/zephyr/src/zephyr_wifi_mgmt.c @@ -74,7 +74,7 @@ void wifi_nrf_scan_timeout_work(struct k_work *work) vif_ctx_zep->scan_in_progress = false; } -int wifi_nrf_disp_scan_zep(const struct device *dev, +int wifi_nrf_disp_scan_zep(const struct device *dev, struct wifi_scan_params *params, scan_result_cb_t cb) { enum wifi_nrf_status status = WIFI_NRF_STATUS_FAIL;