aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-05-24 18:45:57 +0200
committerFelix Fietkau <nbd@nbd.name>2021-05-26 11:48:14 +0200
commitc8bcdd561909034a14cbfd785e13848cbd5f5e50 (patch)
treee8bfac9cad29131f40454b2a2178694a7e70c159 /package/kernel/mac80211
parent8504212f65865449dd6b9ed9daa0ba9781f8f287 (diff)
downloadupstream-c8bcdd561909034a14cbfd785e13848cbd5f5e50.tar.gz
upstream-c8bcdd561909034a14cbfd785e13848cbd5f5e50.tar.bz2
upstream-c8bcdd561909034a14cbfd785e13848cbd5f5e50.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>
Diffstat (limited to 'package/kernel/mac80211')
-rw-r--r--package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh8
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 fca7c1c1d6..8771f12d2f 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