mac80211: reset ht_capab for each device
[openwrt.git] / package / kernel / mac80211 / files / lib / wifi / mac80211.sh
index 1f69b47..5d3adb1 100644 (file)
@@ -66,10 +66,10 @@ detect_mac80211() {
                config_foreach check_mac80211_device wifi-device
                [ "$found" -gt 0 ] && continue
 
-               mode_11n=""
                mode_band="g"
                channel="11"
                htmode=""
+               ht_capab=""
 
                iw phy "$dev" info | grep -q 'Capabilities:' && htmode=HT20
                iw phy "$dev" info | grep -q '2412 MHz' || { mode_band="a"; channel="36"; }
@@ -95,7 +95,7 @@ detect_mac80211() {
 config wifi-device  radio$devidx
        option type     mac80211
        option channel  ${channel}
-       option hwmode   11${mode_11n}${mode_band}
+       option hwmode   11${mode_band}
 $dev_id
 $ht_capab
        # REMOVE THIS LINE TO ENABLE WIFI: