Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions drivers/wifi/nrfwifi/Kconfig.nrfwifi
Original file line number Diff line number Diff line change
Expand Up @@ -815,4 +815,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
4 changes: 4 additions & 0 deletions drivers/wifi/nrfwifi/src/wifi_mgmt_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading