aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-15 20:02:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-15 20:02:59 +0000
commit0eb0fa120a1090e1409b07e20b19d0a004aa5543 (patch)
treef5f7b0b100e8ce056af9f57c821a1809cb82b4ee /package/kernel/mac80211/files
parent164fe72921e83732292296b480e8fcc5bba9d95a (diff)
downloadupstream-0eb0fa120a1090e1409b07e20b19d0a004aa5543.tar.gz
upstream-0eb0fa120a1090e1409b07e20b19d0a004aa5543.tar.bz2
upstream-0eb0fa120a1090e1409b07e20b19d0a004aa5543.zip
mac80211: fix VHT80 channel allocation (thx, SeG)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40770 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/files')
-rw-r--r--package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index 00c2108bbf..751fd32933 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -166,7 +166,7 @@ mac80211_hostapd_setup_base() {
append base_cfg "vht_oper_centr_freq_seg0_idx=$idx" "$N"
;;
VHT80)
- case "$(( ($channel / 4) % 2 ))" in
+ case "$(( ($channel / 4) % 4 ))" in
1) idx=$(($channel + 6));;
2) idx=$(($channel + 2));;
3) idx=$(($channel - 2));;