mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 19:12:33 +08:00
mac80211: disable 802.11n support if htmode is not set to HT* or VHT*
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40681
This commit is contained in:
parent
24791e0dd8
commit
52846f0ff5
@ -67,17 +67,21 @@ mac80211_hostapd_setup_base() {
|
|||||||
json_get_vars noscan htmode
|
json_get_vars noscan htmode
|
||||||
json_get_values ht_capab_list ht_capab
|
json_get_values ht_capab_list ht_capab
|
||||||
|
|
||||||
append base_cfg "ieee80211n=1" "$N"
|
ieee80211n=1
|
||||||
|
|
||||||
ht_capab=
|
ht_capab=
|
||||||
case "$htmode" in
|
case "$htmode" in
|
||||||
|
HT20) ;;
|
||||||
HT40*|VHT40|VHT80|VHT160)
|
HT40*|VHT40|VHT80|VHT160)
|
||||||
case "$(( ($channel / 4) % 2 ))" in
|
case "$(( ($channel / 4) % 2 ))" in
|
||||||
1) ht_capab="[HT40+]";;
|
1) ht_capab="[HT40+]";;
|
||||||
0) ht_capab="[HT40-]";;
|
0) ht_capab="[HT40-]";;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
*) ieee80211n= ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
[ -n "$ieee80211n" ] && append base_cfg "ieee80211n=1" "$N"
|
||||||
|
|
||||||
for cap in $ht_capab_list; do
|
for cap in $ht_capab_list; do
|
||||||
ht_capab="$ht_capab[$cap]"
|
ht_capab="$ht_capab[$cap]"
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user