Skip to content

Commit 4b5ef27

Browse files
krish2718cvinayak
authored andcommitted
[nrf fromtree] wifi: shell: Fix default band value
The enum is mainly to print output of band, so, the default value is 0 which means 2.4GHz, which is not correct when using it to configure like in connect. Fix the default value to unknown i.e., no user preference. This way we can use same enum for both set and get. Signed-off-by: Chaitanya Tata <[email protected]> (cherry picked from commit 8c17987)
1 parent 83980fe commit 4b5ef27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ static int __wifi_args_to_params(size_t argc, char *argv[],
341341
return -EINVAL;
342342
}
343343

344+
params->band = WIFI_FREQ_BAND_UNKNOWN;
345+
344346
/* SSID */
345347
params->ssid = argv[0];
346348
params->ssid_length = strlen(params->ssid);

0 commit comments

Comments
 (0)