mac80211: create channel list for fixed channel operation
[openwrt/openwrt.git] / package / kernel / mac80211 / files / lib / netifd / wireless / mac80211.sh
index a131992f2654f0389f918e27736a52c4e896a34f..5214704830ff0bb8c99cdcb2158c1e576eed84ef 100644 (file)
@@ -110,6 +110,9 @@ mac80211_hostapd_setup_base() {
        json_get_values ht_capab_list ht_capab tx_burst
        json_get_values channel_list channels
 
+       [ "$auto_channel" = 0 ] && [ -z "$channel_list" ] && \
+               channel_list="$channel"
+
        set_default noscan 0
 
        [ "$noscan" -gt 0 ] && hostapd_noscan=1