ADDRESS=$(mac_generate)
BROADCAST_SSID=on
-CHANNEL=0
+CHANNEL=
CHANNEL_BANDWIDTH=
ENCRYPTION=""
KEY=""
return ${EXIT_ERROR}
fi
+ # Automatically enable ACS if no channel is set and ACS is available
+ if ! isset CHANNEL && phy_supports_acs "${PHY}"; then
+ CHANNEL="0"
+
+ log INFO "Automatic Channel Selection (ACS) enabled"
+ fi
+
# Channel bandwidth must match the mode
if isset CHANNEL_BANDWIDTH && ! wireless_channel_bandwidth_is_valid "${MODE}" "${CHANNEL_BANDWIDTH}"; then
error "Channel Bandwidth '${CHANNEL_BANDWIDTH}' is not supported for ${MODE}"