Skip to content

Commit

Permalink
drivers: wifi: Support for forced Passive scan
Browse files Browse the repository at this point in the history
Default scan mode is set as Active scan. User can force passive
scan from Kconfig or from shell using 'passive' option.
Once set it will override regulatory settings and forces all channels
to be passive. Use the scan type param to decide active/passive
scan.

Signed-off-by: Ajay Parida <ajay.parida@nordicsemi.no>
  • Loading branch information
ajayparida authored and rlubos committed Jul 11, 2023
1 parent 6c99a38 commit aaba7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/wifi/nrf700x/zephyr/src/zephyr_wifi_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ int wifi_nrf_disp_scan_zep(const struct device *dev, struct wifi_scan_params *pa
scan_info.scan_mode = AUTO_SCAN;
scan_info.scan_reason = SCAN_DISPLAY;

if (!vif_ctx_zep->passive_scan) {
if (params->scan_type == WIFI_SCAN_TYPE_ACTIVE) {
/* Wildcard SSID to trigger active scan */
scan_info.scan_params.num_scan_ssids = 1;
}
Expand Down

0 comments on commit aaba7ad

Please sign in to comment.