diff --git a/samples/wifi/scan/Kconfig b/samples/wifi/scan/Kconfig index 25ad036efa7..82742cfccd4 100644 --- a/samples/wifi/scan/Kconfig +++ b/samples/wifi/scan/Kconfig @@ -46,6 +46,20 @@ config WIFI_SCAN_CHAN_LIST help Specifies the list of channels used to perform scan. +config WIFI_SCAN_DWELL_TIME_ACTIVE + int "Active scan dwell time" + default 50 + range 5 1000 + help + Active scan dwell time (in ms) per channel. + +config WIFI_SCAN_DWELL_TIME_PASSIVE + int "Passive scan dwell time" + default 130 + range 10 1000 + help + Passive scan dwell time (in ms) per channel. + choice prompt "Choose a WiFi Scan Profile" diff --git a/samples/wifi/scan/prj.conf b/samples/wifi/scan/prj.conf index 04e8cb767f6..2689df0d91d 100644 --- a/samples/wifi/scan/prj.conf +++ b/samples/wifi/scan/prj.conf @@ -45,5 +45,5 @@ CONFIG_NET_MGMT_EVENT_QUEUE_TIMEOUT=5000 CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS=n CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS_ONLY=n -CONFIG_WIFI_MGMT_SCAN_DWELL_TIME_ACTIVE=50 -CONFIG_WIFI_MGMT_SCAN_DWELL_TIME_PASSIVE=130 +CONFIG_WIFI_SCAN_DWELL_TIME_ACTIVE=50 +CONFIG_WIFI_SCAN_DWELL_TIME_PASSIVE=130 diff --git a/samples/wifi/scan/src/main.c b/samples/wifi/scan/src/main.c index 494d058cdcd..05ba2220677 100644 --- a/samples/wifi/scan/src/main.c +++ b/samples/wifi/scan/src/main.c @@ -279,7 +279,7 @@ static int wifi_scan(void) if (sizeof(CONFIG_WIFI_SCAN_CHAN_LIST) - 1) { if (wifi_utils_parse_scan_chan(CONFIG_WIFI_SCAN_CHAN_LIST, - params.chan)) { + params.band_chan, ARRAY_SIZE(params.band_chan))) { LOG_ERR("Incorrect value(s) in CONFIG_WIFI_SCAN_CHAN_LIST: %s", CONFIG_WIFI_SCAN_CHAN_LIST); return -ENOEXEC;