Commit 826f445c authored by Fengming Ye's avatar Fengming Ye Committed by Benjamin Cabé
Browse files

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: default avatarFengming Ye <frank.ye@nxp.com>
parent 2e7edcb4
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -672,12 +672,10 @@ static int __wifi_args_to_params(const struct shell *sh, size_t argc, char *argv
			break;
		case 'c':
			channel = strtol(state->optarg, &endptr, 10);
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
			if (iface_mode == WIFI_MODE_AP && channel == 0) {
				params->channel = channel;
				break;
			}
#endif
			for (band = 0; band < ARRAY_SIZE(all_bands); band++) {
				offset += snprintf(bands_str + offset,
						   sizeof(bands_str) - offset,