diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-05-24 18:45:57 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-11-23 18:30:04 +0100 |
commit | b535ec25ebf9816270a8c26ef354910535a00bb4 (patch) | |
tree | 61925de70ad6c5e87c12c547dcd92a45ac7f3bbe /package | |
parent | 7a2405efc672011d39da16cfcb8402a283f8f53e (diff) | |
download | upstream-b535ec25ebf9816270a8c26ef354910535a00bb4.tar.gz upstream-b535ec25ebf9816270a8c26ef354910535a00bb4.tar.bz2 upstream-b535ec25ebf9816270a8c26ef354910535a00bb4.zip |
mac80211: set hostapd op_class for 6 GHz
This is needed to disambiguate it from 5 GHz channels
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit c8bcdd561909034a14cbfd785e13848cbd5f5e50)
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index cd442ce928..f8e7a2a37f 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -227,6 +227,14 @@ mac80211_hostapd_setup_base() { vht_center_seg0=$idx ;; esac + [ "$band" = "6g" ] && { + op_class= + case "$htmode" in + HE20) op_class=131;; + HE*) op_class=$((132 + $vht_oper_chwidth)) + esac + [ -n "$op_class" ] && append base_cfg "op_class=$op_class" "$N" + } [ "$hwmode" = "a" ] || enable_ac=0 if [ "$enable_ac" != "0" ]; then |