mac80211: force upper channel for HT40 when autochannel is enabled
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 3 May 2014 18:50:06 +0000 (18:50 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 3 May 2014 18:50:06 +0000 (18:50 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40685 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

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