Skip to content
Snippets Groups Projects
Commit 89bb7910 authored by nbd's avatar nbd
Browse files

mac80211: fix VHT80 channel allocation (thx, SeG)


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40770 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 2153c5a6
No related branches found
No related tags found
No related merge requests found
......@@ -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));;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment