Skip to content
Snippets Groups Projects
Commit 8a75eac8 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

mac80211: fix VHT80 channel allocation (thx, SeG)


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

SVN-Revision: 40770
parent 64559648
No related branches found
No related tags found
No related merge requests found
...@@ -166,7 +166,7 @@ mac80211_hostapd_setup_base() { ...@@ -166,7 +166,7 @@ mac80211_hostapd_setup_base() {
append base_cfg "vht_oper_centr_freq_seg0_idx=$idx" "$N" append base_cfg "vht_oper_centr_freq_seg0_idx=$idx" "$N"
;; ;;
VHT80) VHT80)
case "$(( ($channel / 4) % 2 ))" in case "$(( ($channel / 4) % 4 ))" in
1) idx=$(($channel + 6));; 1) idx=$(($channel + 6));;
2) idx=$(($channel + 2));; 2) idx=$(($channel + 2));;
3) 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