Skip to content

Commit 826f445

Browse files
fengming-yekartben
authored andcommitted
wifi: shell: add ACS case in ap enable cmd
In ap enable cmd, channel set to 0 means ACS mode. Remove hostapd AP macro for this case to make ACS mode available for public usage. Signed-off-by: Fengming Ye <[email protected]>
1 parent 2e7edcb commit 826f445

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,12 +672,10 @@ static int __wifi_args_to_params(const struct shell *sh, size_t argc, char *argv
672672
break;
673673
case 'c':
674674
channel = strtol(state->optarg, &endptr, 10);
675-
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
676675
if (iface_mode == WIFI_MODE_AP && channel == 0) {
677676
params->channel = channel;
678677
break;
679678
}
680-
#endif
681679
for (band = 0; band < ARRAY_SIZE(all_bands); band++) {
682680
offset += snprintf(bands_str + offset,
683681
sizeof(bands_str) - offset,

0 commit comments

Comments
 (0)