aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-03 18:50:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-03 18:50:06 +0000
commitfcc9d6fb0ca092d33cf893e37a4b5a35dba37baa (patch)
tree8413abec0cdd2ae1e8c1a7e2b218a5731da13627
parent15f447a3f5d0147b5aa72abdda8a4e6948f7f804 (diff)
downloadupstream-fcc9d6fb0ca092d33cf893e37a4b5a35dba37baa.tar.gz
upstream-fcc9d6fb0ca092d33cf893e37a4b5a35dba37baa.tar.bz2
upstream-fcc9d6fb0ca092d33cf893e37a4b5a35dba37baa.zip
mac80211: force upper channel for HT40 when autochannel is enabled
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40685 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index 29100887e3..ec8c9f1471 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -112,6 +112,7 @@ mac80211_hostapd_setup_base() {
esac
;;
esac
+ [ "$auto_channel" -gt 0 ] && ht_capab="[HT40+]"
;;
*) ieee80211n= ;;
esac