Package: release.debian.org
Severity: normal
Tags: bookworm
X-Debbugs-Cc: [email protected]
Control: affects -1 + src:wireless-regdb
User: [email protected]
Usertags: pu

[ Reason ]
Provide current information about national radio regulations to the
Linux Wi-Fi stack.

[ Impact ]
Users may accidentally configure Wi-Fi hardware to use channels or
power levels that are not permitted, or may be unable to use channels
that are permitted.

[ Tests ]
- The signatures on regulatory.db are checked against the kernel trust
  list by an autopkgtest test case.
- The database itself is identical to the version in unstable, and
  currently identical to the upstream version.

[ Risks ]
The package is fairly trivial.  The only risk I see is that the new
database could conceivably differ from the actual regulations in a
more serious way.

[ Checklist ]
  [X] *all* changes are documented in the d/changelog
  [X] I reviewed all changes and I approve them
  [X] attach debdiff against the package in (old)stable
  [X] the issue is verified as fixed in unstable

[ Changes ]
This is a backport from testing/unstable, because every suite should
get the latest rules.

Upstream changes:
- Updated the regulatory database (db.txt) following various national
  radio regulatory changes.
- Regenerated the binaries and signatures (regulatory.bin,
  regulatory.db, regulatory.db.p7s) and checksum (sha1sum.txt) from
  db.txt.
- The db2bin.py script used to build regulatory.bin was changed to use
  the Python cryptography library.  However the package build doesn't
  use this script.

Debian changes:
- Regenerated my signature for the regulatory database

[ Other info ]
diff -Nru wireless-regdb-2026.02.04/db.txt wireless-regdb-2026.05.30/db.txt
--- wireless-regdb-2026.02.04/db.txt    2026-02-04 08:44:32.000000000 +0100
+++ wireless-regdb-2026.05.30/db.txt    2026-05-30 17:36:17.000000000 +0200
@@ -326,11 +326,20 @@
        (5490 - 5730 @ 160), (24), DFS
        (5735 - 5835 @ 80), (30)
 
-country BN: DFS-JP
-       (2402 - 2482 @ 40), (20)
-       (5170 - 5250 @ 80), (20), AUTO-BW
-       (5250 - 5330 @ 80), (20), DFS, AUTO-BW
-       (5735 - 5835 @ 80), (20)
+# Source:
+# https://aiti.gov.bn/media/planjc1p/bd-radio-spectrum-plan-2019.pdf
+# Section 7.5, Page 244-251
+country BN: DFS-FCC
+       (2400 - 2483.5 @ 40), (200 mW)
+       (5150 - 5250 @ 80), (1000 mW), AUTO-BW
+       (5250 - 5350 @ 80), (500 mW), DFS, AUTO-BW
+       # This range ends at 5725 MHz, but channel 144 extends to 5730 MHz.
+       # Since 5725 ~ 5730 MHz belongs to the next range which has looser
+       # requirements, we can extend the range by 5 MHz to make the kernel
+       # happy and be able to use channel 144.
+       (5470 - 5730 @ 160), (500 mW), DFS
+       (5730 - 5850 @ 80), (4000 mW)
+       (57000 - 66000 @ 2160), (10000 mW), NO-OUTDOOR
 
 country BO: DFS-JP
        (2402 - 2482 @ 40), (20)
@@ -731,6 +740,13 @@
        (5490 - 5730 @ 160), (24), DFS
        (5735 - 5835 @ 80), (30)
 
+country FO: DFS-ETSI
+       (2400 - 2483.5 @ 40), (100 mW)
+       (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW
+       (5250 - 5350 @ 80), (100 mW), DFS, NO-OUTDOOR, AUTO-BW
+       (5470 - 5725 @ 160), (500 mW), DFS
+       (5945 - 6425 @ 320), (23), NO-OUTDOOR
+
 # FR as part of EU/CEPT accepted decisions 2005/513/EC (5GHz RLAN, EN 301 893)
 # and 2006/771/EC (amended by 2008/432/EC, Short-Range Devices, EN 300 440)
 #  EU decision 2005/513/EC: 
https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:02005D0513-20070213
@@ -801,6 +817,13 @@
        (5490 - 5730 @ 160), (24), DFS
        (5735 - 5835 @ 80), (30)
 
+country GI: DFS-ETSI
+       (2400 - 2483.5 @ 40), (100 mW)
+       (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW
+       (5250 - 5350 @ 80), (100 mW), DFS, NO-OUTDOOR, AUTO-BW
+       (5470 - 5725 @ 160), (500 mW), DFS
+       (5945 - 6425 @ 320), (23), NO-OUTDOOR
+
 country GL: DFS-ETSI
        (2402 - 2482 @ 40), (20)
        (5170 - 5250 @ 80), (20), AUTO-BW, wmmrule=ETSI
@@ -869,7 +892,7 @@
        (5250 - 5350 @ 80), (23), DFS, AUTO-BW, NO-OUTDOOR
        (5470 - 5730 @ 160), (27), DFS
        (5730 - 5850 @ 80), (36)
-       (5925 - 6425 @ 160), (14)
+       (5945 - 6425 @ 160), (24), NO-OUTDOOR
 
 # Source:
 # https://www.conatel.gob.hn/doc/Regulacion/resoluciones/2023/NR05-23.pdf
@@ -976,6 +999,13 @@
        (5725 - 5875 @ 80), (25 mW), AUTO-BW
        (5945 - 6425 @ 320), (200 mW), NO-OUTDOOR
 
+country IM: DFS-ETSI
+       (2400 - 2483.5 @ 40), (100 mW)
+       (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW
+       (5250 - 5350 @ 80), (100 mW), DFS, NO-OUTDOOR, AUTO-BW
+       (5470 - 5725 @ 160), (500 mW), DFS
+       (5945 - 6425 @ 320), (23), NO-OUTDOOR
+
 # Source:
 # 
https://dot.gov.in/spectrummanagement/delicensing-24-24835-ghz-band-gsr-45-e-5150-5350-ghz-gsr-46-e-and-5725-5875-ghz
 # 
https://dot.gov.in/spectrummanagement/license-exemption-5-ghz-gsr-1048e-dated-22102018
@@ -985,6 +1015,7 @@
        (5250 - 5350 @ 80), (24), DFS
        (5470 - 5725 @ 160), (24), DFS
        (5725 - 5875 @ 80), (30)
+       (5925 - 6425 @ 320), (24), NO-OUTDOOR
 
 # Source:
 # 
https://asnad.cra.ir/fa/Public/Documents/Details/73af8590-f065-eb11-968f-0050569b0899
@@ -1113,8 +1144,9 @@
        (5250 - 5350 @ 80), (20), DFS, AUTO-BW
        (5470 - 5725 @ 160), (20), DFS
        (5725 - 5850 @ 80), (23)
-       # 6 GHz band
-       (5925 - 7125 @ 160), (15), NO-OUTDOOR
+       # 6 GHz band - per MSIT Notice 2026-10
+       (5925 - 6425 @ 320), (18), NO-OUTDOOR, AUTO-BW
+       (6425 - 7125 @ 320), (15), NO-OUTDOOR, AUTO-BW
        # 60 GHz band channels 1-4
        (57000 - 66000 @ 2160), (43)
 
@@ -1189,12 +1221,15 @@
        # 60 GHz band channels 1-4 (ETSI EN 302 567)
        (57000 - 66000 @ 2160), (40)
 
-country LK: DFS-FCC
-       (2402 - 2482 @ 40), (20)
-       (5170 - 5250 @ 20), (17)
-       (5250 - 5330 @ 20), (24), DFS
-       (5490 - 5730 @ 20), (24), DFS
-       (5735 - 5835 @ 20), (30)
+# Source:
+# https://www.trc.gov.lk/content/files/licensing/RTTE_GAZETTE-English.pdf
+# Sri Lanka RTTE Type Approval Rules 2020, Table 2 - Applicable Standards- 
Wireless
+country LK: DFS-ETSI
+       (2400 - 2483.5 @ 40), (200 mW)
+       (5150 - 5250 @ 80), (200 mW), AUTO-BW
+       (5250 - 5350 @ 80), (20), DFS, AUTO-BW
+       (5470 - 5725 @ 160), (27), DFS, AUTO-BW
+       (5725 - 5875 @ 80), (24), DFS, AUTO-BW
 
 # Source:
 # 
http://lca.org.ls/images/documents/lesotho_national_frequency_allocation_plan.pdf
@@ -1749,8 +1784,8 @@
 country RU:
        (2400 - 2483.5 @ 40), (100mW)
        (5150 - 5350 @ 160), (100 mW), NO-OUTDOOR
-       (5650 - 5850 @ 160), (100 mW), NO-OUTDOOR
-       (5925 - 6425 @ 160), (100 mW), NO-OUTDOOR
+       (5650 - 5850 @ 160), (200 mW), NO-OUTDOOR
+       (5925 - 6425 @ 320), (200 mW), NO-OUTDOOR
        # 60 GHz band channels 1-4, ref: Changes to NLA 124_Order 
№129_22042015.pdf
        (57000 - 66000 @ 2160), (40), NO-OUTDOOR
 
@@ -1854,6 +1889,13 @@
        # 60 GHz band channels 1-4 (ETSI EN 302 567)
        (57000 - 66000 @ 2160), (40)
 
+country SM: DFS-ETSI
+       (2400 - 2483.5 @ 40), (100 mW)
+       (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW
+       (5250 - 5350 @ 80), (100 mW), DFS, NO-OUTDOOR, AUTO-BW
+       (5470 - 5725 @ 160), (500 mW), DFS
+       (5945 - 6425 @ 320), (23), NO-OUTDOOR
+
 # Source:
 # Regulation N° 2004-005 ART/DG/DRC/D.Rég
 country SN: DFS-FCC
@@ -2015,7 +2057,7 @@
        (5725 - 5850 @ 80), (100 mW), NO-OUTDOOR
        (5945 - 6425 @ 320), (23), NO-OUTDOOR
        # 60 GHz band channels 1-4, ref: Etsi En 302 567
-       (57000 - 66000 @ 2160), (40 mW), NO-OUTDOOR
+       (57000 - 66000 @ 2160), (40), NO-OUTDOOR
 
 country UG: DFS-FCC
        (2402 - 2482 @ 40), (20)
@@ -2071,6 +2113,13 @@
        (5170 - 5250 @ 80), (20), AUTO-BW
        (5250 - 5330 @ 80), (20), DFS, AUTO-BW
 
+country VA: DFS-ETSI
+       (2400 - 2483.5 @ 40), (100 mW)
+       (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW
+       (5250 - 5350 @ 80), (100 mW), DFS, NO-OUTDOOR, AUTO-BW
+       (5470 - 5725 @ 160), (500 mW), DFS
+       (5945 - 6425 @ 320), (23), NO-OUTDOOR
+
 # Source:
 # http://www.ntrc.vc/regulations/Jun_2006_Spectrum_Managment_Regulations.pdf
 country VC: DFS-ETSI
@@ -2144,7 +2193,7 @@
        (5170 - 5250 @ 80), (20), AUTO-BW
        (5250 - 5330 @ 80), (20), DFS, AUTO-BW
        (5490 - 5710 @ 160), (30)
-       (5925 - 6425 @ 320), (14)
+       (5925 - 6425 @ 320), (23), NO-OUTDOOR
 
 country ZW: DFS-ETSI
        (2402 - 2482 @ 40), (20)
diff -Nru wireless-regdb-2026.02.04/db2bin.py 
wireless-regdb-2026.05.30/db2bin.py
--- wireless-regdb-2026.02.04/db2bin.py 2026-02-04 08:44:32.000000000 +0100
+++ wireless-regdb-2026.05.30/db2bin.py 2026-05-30 17:36:17.000000000 +0200
@@ -2,7 +2,6 @@
 
 from io import BytesIO, open
 import struct
-import hashlib
 from dbparse import DBParser
 import sys
 
@@ -125,19 +124,18 @@
     # Load RSA only now so people can use this script
     # without having those libraries installed to verify
     # their SQL changes
-    from M2Crypto import RSA
+    from cryptography.hazmat.primitives import hashes, serialization
+    from cryptography.hazmat.primitives.asymmetric import padding
 
     # determine signature length
-    key = RSA.load_key(sys.argv[3])
-    hash = hashlib.sha1()
-    hash.update(output.getvalue())
-    sig = key.sign(hash.digest())
+    with open(sys.argv[3], 'rb') as key_file:
+        key = serialization.load_pem_private_key(key_file.read(),
+                                                 password=None)
+    sig = key.sign(output.getvalue(), padding.PKCS1v15(), hashes.SHA1())
     # write it to file
     siglen.set(len(sig))
     # sign again
-    hash = hashlib.sha1()
-    hash.update(output.getvalue())
-    sig = key.sign(hash.digest())
+    sig = key.sign(output.getvalue(), padding.PKCS1v15(), hashes.SHA1())
 
     output.write(sig)
 else:
diff -Nru wireless-regdb-2026.02.04/debian/changelog 
wireless-regdb-2026.05.30/debian/changelog
--- wireless-regdb-2026.02.04/debian/changelog  2026-02-20 17:30:17.000000000 
+0100
+++ wireless-regdb-2026.05.30/debian/changelog  2026-06-05 19:02:58.000000000 
+0200
@@ -1,3 +1,32 @@
+wireless-regdb (2026.05.30-1~deb12u1) bookworm; urgency=medium
+
+  * Rebuild for bookworm
+
+ -- Ben Hutchings <[email protected]>  Fri, 05 Jun 2026 19:02:58 +0200
+
+wireless-regdb (2026.05.30-1) unstable; urgency=medium
+
+  * New upstream version:
+    - Add regulatory info for CEPT countries FO, GI, IM, SM and VA listed by
+      WiFi Alliance
+    - Update 6 GHz rules for Hong Kong (HK)
+    - Update 5/6 GHz power rules for Russia (RU)
+    - Fix 60 GHz power unit for Ukraine (UA)
+    - Update 6 GHz rules for South Africa (ZA)
+    - Update 6 GHz rules for South Korea (KR)
+    - allow 320MHz channel width for Russia
+    - Update regulatory info for Brunei Darussalam (BN) for 2022
+    - Update regulatory rules for Sri Lanka (LK)
+
+ -- Ben Hutchings <[email protected]>  Fri, 05 Jun 2026 17:45:04 +0200
+
+wireless-regdb (2026.03.18-1) unstable; urgency=medium
+
+  * New upstream version:
+    - Update regulatory rules for India (IN) on 6GHz
+
+ -- Ben Hutchings <[email protected]>  Thu, 07 May 2026 11:43:19 +0200
+
 wireless-regdb (2026.02.04-1~deb12u1) bookworm; urgency=medium
 
   * Backport to bookworm:
Binary files 
/var/tmp/NrbdgmC4QL/wireless-regdb-2026.02.04/debian/regulatory.db.p7s and 
/var/tmp/mlcQETPSrJ/wireless-regdb-2026.05.30/debian/regulatory.db.p7s differ
Binary files /var/tmp/NrbdgmC4QL/wireless-regdb-2026.02.04/regulatory.bin and 
/var/tmp/mlcQETPSrJ/wireless-regdb-2026.05.30/regulatory.bin differ
Binary files /var/tmp/NrbdgmC4QL/wireless-regdb-2026.02.04/regulatory.db and 
/var/tmp/mlcQETPSrJ/wireless-regdb-2026.05.30/regulatory.db differ
Binary files /var/tmp/NrbdgmC4QL/wireless-regdb-2026.02.04/regulatory.db.p7s 
and /var/tmp/mlcQETPSrJ/wireless-regdb-2026.05.30/regulatory.db.p7s differ
diff -Nru wireless-regdb-2026.02.04/sha1sum.txt 
wireless-regdb-2026.05.30/sha1sum.txt
--- wireless-regdb-2026.02.04/sha1sum.txt       2026-02-04 08:44:32.000000000 
+0100
+++ wireless-regdb-2026.05.30/sha1sum.txt       2026-05-30 17:36:17.000000000 
+0200
@@ -1 +1 @@
-4f54def43afee78f38e7e36888972ae1a46b04de  db.txt
+84e1c61b29afb342f41c18ec6f4f67abc1f09901  db.txt

Reply via email to