Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 2025 06:50:56 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 07948e050808 - main - net80211: regdomain: ETSI: add missing 11a and 11na entries
Message-ID:  <202507070650.5676oudE089013@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=07948e050808158567c0ca7d345ad035115c0d88

commit 07948e050808158567c0ca7d345ad035115c0d88
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-07-05 01:47:13 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-07-07 06:49:02 +0000

    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
---
 lib/lib80211/regdomain.xml | 44 ++++++++++++++++++++++++++++++++++++--------
 1 file changed, 36 insertions(+), 8 deletions(-)

diff --git a/lib/lib80211/regdomain.xml b/lib/lib80211/regdomain.xml
index 9116e54c31cf..16b74445f429 100644
--- a/lib/lib80211/regdomain.xml
+++ b/lib/lib80211/regdomain.xml
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507070650.5676oudE089013>