drivers: wifi: Add Kconfig option for passive scan

Add kconfig option for forced passive scan, It will use for
only scan only mode.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
This commit is contained in:
Kapil Bhatt 2024-10-17 19:01:23 +05:30 committed by Henrik Brix Andersen
parent 98110e2946
commit 0b11b39461
2 changed files with 11 additions and 0 deletions

View File

@ -814,4 +814,11 @@ config NRF_WIFI_PS_INT_PS
whether to stay in PS (for lower amount of buffered data) or exit PS (for higher
amount of buffered data).
endchoice
config NRF70_PASSIVE_SCAN_ONLY
bool "Forced Passive scan"
depends on NRF70_SCAN_ONLY
help
Enable this configuration to force passive scan on all channels.
This will override application specified scan type.
endif # WIFI_NRF70

View File

@ -206,6 +206,10 @@ int nrf_wifi_disp_scan_zep(const struct device *dev, struct wifi_scan_params *pa
vif_ctx_zep->scan_res_cnt = 0;
#ifdef CONFIG_NRF70_PASSIVE_SCAN_ONLY
scan_info->scan_params.passive_scan = 1;
#endif /* CONFIG_NRF70_PASSIVE_SCAN_ONLY */
status = nrf_wifi_fmac_scan(rpu_ctx_zep->rpu_ctx, vif_ctx_zep->vif_idx, scan_info);
if (status != NRF_WIFI_STATUS_SUCCESS) {