Skip to content

Commit b0c9658

Browse files
VivekUppundacarlescufi
authored andcommitted
net: l2: wifi: Fix Wi-Fi mode get command bug
The mode command operation has to be set to WIFI_MGMT_GET when the option -g is provided. It was mistakenly set to true. Correcting the same This PR fixes #63424 and sets the proper value for the get command Signed-off-by: Vivekananda Uppunda <[email protected]>
1 parent ca1de2f commit b0c9658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ void parse_mode_args_to_params(const struct shell *sh, int argc,
13061306
mode->mode |= WIFI_SOFTAP_MODE;
13071307
break;
13081308
case 'g':
1309-
mode->oper = true;
1309+
mode->oper = WIFI_MGMT_GET;
13101310
break;
13111311
case 'i':
13121312
mode->if_index = (uint8_t)atoi(optarg);

0 commit comments

Comments
 (0)