Skip to content

Commit 85a2548

Browse files
krish2718rlubos
authored andcommitted
[nrf fromtree] wifi: shell: Fix AP argument checks and help
AP enable takes the same parameters as connect, so, update the help and also fix the optional parameter count when security is involved. Signed-off-by: Chaitanya Tata <[email protected]> (cherry picked from commit 9736cc7)
1 parent 8614671 commit 85a2548

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,9 +1598,16 @@ SHELL_STATIC_SUBCMD_SET_CREATE(wifi_cmd_ap,
15981598
"Disable Access Point mode",
15991599
cmd_wifi_ap_disable,
16001600
1, 0),
1601-
SHELL_CMD_ARG(enable, NULL, "<SSID> [channel] [PSK]",
1601+
SHELL_CMD_ARG(enable, NULL,
1602+
"\"<SSID>\"\n"
1603+
"[channel number: 0 means all]\n"
1604+
"[PSK: valid only for secure SSIDs]\n"
1605+
"[Security type: valid only for secure SSIDs]\n"
1606+
"0:None, 1:WPA2-PSK, 2:WPA2-PSK-256, 3:SAE, 4:WAPI, 5:EAP, 6:WEP, 7: WPA-PSK\n"
1607+
"[MFP (optional: needs security type to be specified)]\n"
1608+
": 0:Disable, 1:Optional, 2:Required",
16021609
cmd_wifi_ap_enable,
1603-
2, 1),
1610+
2, 4),
16041611
SHELL_SUBCMD_SET_END
16051612
);
16061613

0 commit comments

Comments
 (0)