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

mac80211: add automatic ht40 mode handling for 2.4 ghz


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

SVN-Revision: 40684
parent 54625965
No related branches found
No related tags found
No related merge requests found
...@@ -91,9 +91,26 @@ mac80211_hostapd_setup_base() { ...@@ -91,9 +91,26 @@ mac80211_hostapd_setup_base() {
case "$htmode" in case "$htmode" in
HT20) ;; HT20) ;;
HT40*|VHT40|VHT80|VHT160) HT40*|VHT40|VHT80|VHT160)
case "$(( ($channel / 4) % 2 ))" in case "$hwmode" in
1) ht_capab="[HT40+]";; a)
0) ht_capab="[HT40-]";; case "$(( ($channel / 4) % 2 ))" in
1) ht_capab="[HT40+]";;
0) ht_capab="[HT40-]";;
esac
;;
*)
case "$htmode" in
HT40+) ht_capab="[HT40+]";;
HT40-) ht_capab="[HT40-]";;
*)
if [ "$channel" -lt 7 ]; then
ht_capab="[HT40+]"
else
ht_capab="[HT40-]"
fi
;;
esac
;;
esac esac
;; ;;
*) ieee80211n= ;; *) ieee80211n= ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment