Skip to content

Commit ab4905d

Browse files
committed
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 <[email protected]>
1 parent 185432c commit ab4905d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

drivers/wifi/nrfwifi/Kconfig.nrfwifi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,4 +815,11 @@ config NRF_WIFI_PS_INT_PS
815815
whether to stay in PS (for lower amount of buffered data) or exit PS (for higher
816816
amount of buffered data).
817817
endchoice
818+
819+
config NRF70_PASSIVE_SCAN_ONLY
820+
bool "Forced Passive scan"
821+
depends on NRF70_SCAN_ONLY
822+
help
823+
Enable this configuration to force passive scan on all channels.
824+
This will override application specified scan type.
818825
endif # WIFI_NRF70

drivers/wifi/nrfwifi/src/wifi_mgmt_scan.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ int nrf_wifi_disp_scan_zep(const struct device *dev, struct wifi_scan_params *pa
206206

207207
vif_ctx_zep->scan_res_cnt = 0;
208208

209+
#ifdef CONFIG_NRF70_PASSIVE_SCAN_ONLY
210+
scan_info->scan_params.passive_scan = 1;
211+
#endif /* CONFIG_NRF70_PASSIVE_SCAN_ONLY */
212+
209213
status = nrf_wifi_fmac_scan(rpu_ctx_zep->rpu_ctx, vif_ctx_zep->vif_idx, scan_info);
210214

211215
if (status != NRF_WIFI_STATUS_SUCCESS) {

0 commit comments

Comments
 (0)