mac80211: force upper channel for HT40 when autochannel is enabled
authorFelix Fietkau <nbd@openwrt.org>
Sat, 3 May 2014 18:50:06 +0000 (18:50 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 3 May 2014 18:50:06 +0000 (18:50 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40685

package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh

index 29100887e36e6fdc6d6c8a3f165802085fd8fe0d..ec8c9f14715d166b6a56a281adeb9ae635e6956d 100644 (file)
@@ -112,6 +112,7 @@ mac80211_hostapd_setup_base() {
                                                esac
                                        ;;
                                esac
+                               [ "$auto_channel" -gt 0 ] && ht_capab="[HT40+]"
                        ;;
                        *) ieee80211n= ;;
                esac