net80211: regdomain: ETSI: add missing 11a and 11na entries

The frequency range 5745-5865 (channels 149-173) wrongly has a
VHT160 channel listed (going up to 5885/177 which is not avail in
ETSI) but no 11a, 11na listed.  Add the 11a and 11na in addition to
the 11ac 20/40 and 80.
Turns out the VHT40 entry for 5805-5845 was also missing. We already
had the neccessary setting for taiwan, so just adjust the freqband ref.

The problem is that without the 11a base channel ieee80211_find_channel()
in ieee80211_lookup_channel_rxstatus() will fail and sta_recv_mgmt() will
not get the correct channel but will use ic->ic_curchan (which is not
updated on scan offloading) and the scan result entry will be added as
channel 1.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	adrian (previous version)
Differential Revision: https://reviews.freebsd.org/D51163
This commit is contained in:
Bjoern A. Zeeb 2025-07-05 01:47:13 +00:00
parent e05999a8c5
commit 07948e0508

View file

@ -494,6 +494,10 @@
<flags>IEEE80211_CHAN_PASSIVE</flags>
<flags>IEEE80211_CHAN_DFS</flags>
</band>
<band>
<freqband ref="A20_5745_5865"/>
<maxpower>13</maxpower>
</band>
</netband>
<netband mode="11ng">
<band>
@ -548,6 +552,14 @@
<flags>IEEE80211_CHAN_PASSIVE</flags>
<flags>IEEE80211_CHAN_DFS</flags>
</band>
<band>
<freqband ref="NA20_5745_5865"/>
<maxpower>13</maxpower>
</band>
<band>
<freqband ref="NA40_5745_5845"/>
<maxpower>13</maxpower>
</band>
</netband>
<netband mode="11ac">
<!-- 5150-5250/80, 200 mW, indoor -->
@ -645,7 +657,7 @@
<flags>IEEE80211_CHAN_DFS</flags>
</band>
<band>
<freqband ref="AC2_5745_5805_40"/>
<freqband ref="AC2_5745_5845_40"/>
<maxpower>13</maxpower>
<flags>IEEE80211_CHAN_HT40</flags>
<flags>IEEE80211_CHAN_VHT40</flags>
@ -658,13 +670,6 @@
<flags>IEEE80211_CHAN_VHT80</flags>
<flags>IEEE80211_CHAN_DFS</flags>
</band>
<band>
<freqband ref="AC2_5745_5885_160"/>
<maxpower>13</maxpower>
<flags>IEEE80211_CHAN_HT40</flags>
<flags>IEEE80211_CHAN_VHT160</flags>
<flags>IEEE80211_CHAN_DFS</flags>
</band>
</netband>
</rd>
@ -2304,6 +2309,29 @@
<chanwidth>20</chanwidth> <chansep>20</chansep>
<flags>IEEE80211_CHAN_A</flags>
</freqband>
<freqband id="A20_5745_5865">
<freqstart>5745</freqstart>
<freqend>5865</freqend>
<chanwidth>20</chanwidth>
<chansep>20</chansep>
<flags>IEEE80211_CHAN_A</flags>
</freqband>
<freqband id="NA20_5745_5865">
<freqstart>5745</freqstart>
<freqend>5865</freqend>
<chanwidth>20</chanwidth>
<chansep>20</chansep>
<flags>IEEE80211_CHAN_A</flags>
<flags>IEEE80211_CHAN_HT20</flags>
</freqband>
<freqband id="NA40_5745_5845">
<freqstart>5745</freqstart>
<freqend>5845</freqend>
<chanwidth>40</chanwidth>
<chansep>20</chansep>
<flags>IEEE80211_CHAN_A</flags>
<flags>IEEE80211_CHAN_HT40</flags>
</freqband>
<freqband id="F1_5660_5700">
<freqstart>5660</freqstart> <freqend>5700</freqend>
<chanwidth>20</chanwidth> <chansep>20</chansep>