git: a3a308f0f29b - main - lib80211: regdomain: add the two other 160MHz bands

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Tue, 07 Jan 2025 18:16:53 UTC
The branch main has been updated by bz:

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

commit a3a308f0f29b14d522c56dd88231e27fdf206104
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-01-04 07:58:48 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-01-07 18:16:13 +0000

    lib80211: regdomain: add the two other 160MHz bands
    
    ETSI had one 160Mhz band in regdomain but the other two were missing.
    Add them.  I am always confused that the bands use the center frequency
    of the 20Mhz edge channels rather than the actual edges so it seems we
    are only configuring 140Mhz instead of 160Mhz.
    
    We will have to go through the entire regdomain file one
    day and make sure to verify all the power levels.
    
    Sponsored by:   The FreeSBD Foundation
    MFC after:      3 days
    Reviewed by:    adrian
    Differential Revision: https://reviews.freebsd.org/D48356
---
 lib/lib80211/regdomain.xml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/lib/lib80211/regdomain.xml b/lib/lib80211/regdomain.xml
index 5a432f39ccf6..557af0349cb0 100644
--- a/lib/lib80211/regdomain.xml
+++ b/lib/lib80211/regdomain.xml
@@ -572,6 +572,13 @@
       <flags>IEEE80211_CHAN_VHT80</flags>
       <flags>INDOOR</flags>
     </band>
+    <band>
+      <freqband ref="AC2_5180_5320_160"/>
+      <maxpower>22</maxpower>
+      <flags>IEEE80211_CHAN_HT40</flags>
+      <flags>IEEE80211_CHAN_VHT160</flags>
+      <flags>IEEE80211_CHAN_DFS</flags>
+    </band>
 
     <!-- 5250-5350/80, 100 mW, indoor, DFS -->
     <band>
@@ -651,6 +658,13 @@
       <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>
 
@@ -1905,6 +1919,11 @@
   <chanwidth>80</chanwidth> <chansep>20</chansep>
   <flags>IEEE80211_CHAN_A</flags>
 </freqband>
+<freqband id="AC2_5180_5320_160">
+  <freqstart>5180</freqstart> <freqend>5320</freqend>
+  <chanwidth>160</chanwidth> <chansep>20</chansep>
+  <flags>IEEE80211_CHAN_A</flags>
+</freqband>
 <!-- 5250-5350/80 -->
 <freqband id="AC2_5260_5340_20">
   <freqstart>5260</freqstart> <freqend>5340</freqend>
@@ -1958,6 +1977,11 @@
   <chanwidth>80</chanwidth> <chansep>20</chansep>
   <flags>IEEE80211_CHAN_A</flags>
 </freqband>
+<freqband id="AC2_5745_5885_160">
+  <freqstart>5745</freqstart> <freqend>5885</freqend>
+  <chanwidth>160</chanwidth> <chansep>20</chansep>
+  <flags>IEEE80211_CHAN_A</flags>
+</freqband>
 <freqband id="H4_5180_5240">
   <freqstart>5180</freqstart> <freqend>5240</freqend>
   <chanwidth>40</chanwidth> <chansep>20</chansep>