Skip to content

Commit

Permalink
samples: wifi: scan: Define missing Kconfig options locally
Browse files Browse the repository at this point in the history
As part of upstream zephyr changes, a couple of Konfig options have
been removed and need to be defined locally by the sample.

Signed-off-by: Ravi Dondaputi <[email protected]>
  • Loading branch information
rado17 authored and rlubos committed Jan 4, 2024
1 parent ffb0d5d commit 60f3b98
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions samples/wifi/scan/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions samples/wifi/scan/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion samples/wifi/scan/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 60f3b98

Please sign in to comment.