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>
This commit is contained in:
@@ -227,6 +227,14 @@ mac80211_hostapd_setup_base() {
|
|||||||
vht_center_seg0=$idx
|
vht_center_seg0=$idx
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
[ "$hwmode" = "a" ] || enable_ac=0
|
||||||
|
|
||||||
if [ "$enable_ac" != "0" ]; then
|
if [ "$enable_ac" != "0" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user