The channel offset used for VHT segment calculation was missing for HT
Signed-off-by: Felix Fietkau <nbd@nbd.name>
[ "$noscan" -gt 0 ] && hostapd_noscan=1
[ "$tx_burst" = 0 ] && tx_burst=
+ chan_ofs=0
+ [ "$band" = "6g" ] && chan_ofs=1
+
ieee80211n=1
ht_capab=
case "$htmode" in
HT40*|VHT40|VHT80|VHT160|HE40|HE80|HE160)
case "$hwmode" in
a)
- case "$(( ($channel / 4) % 2 ))" in
+ case "$(( (($channel / 4) + $chan_ofs) % 2 ))" in
1) ht_capab="[HT40+]";;
0) ht_capab="[HT40-]";;
esac
enable_ac=0
vht_oper_chwidth=0
vht_center_seg0=
- chan_ofs=0
- [ "$band" = "6g" ] && chan_ofs=1
idx="$channel"
case "$htmode" in