summaryrefslogtreecommitdiff
path: root/package/kernel/mac80211
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
commit8a75eac80bfbe0d5065ccd21fadd8d71c57476db (patch)
treec92c0d6a5f360023220fb1c841e71a445e3a7ba9 /package/kernel/mac80211
parent645596489ff4759a4767f6e4e6901f21709774a5 (diff)
downloadmtk-20170518-8a75eac80bfbe0d5065ccd21fadd8d71c57476db.zip
mtk-20170518-8a75eac80bfbe0d5065ccd21fadd8d71c57476db.tar.gz
mtk-20170518-8a75eac80bfbe0d5065ccd21fadd8d71c57476db.tar.bz2
mac80211: fix VHT80 channel allocation (thx, SeG)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40770
Diffstat (limited to 'package/kernel/mac80211')
-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 00c2108..751fd32 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));;