This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:software:openwrt_custom_wireless-regdb [2023/10/30 14:05] – [Installing your Custom wireless-regdb Package] fix missing /tmp Andrew Yong | projects:software:openwrt_custom_wireless-regdb [2024/03/23 11:22] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== OpenWrt Custom wireless-regdb ====== | ====== OpenWrt Custom wireless-regdb ====== | ||
+ | Note: Do not use the patch below if you are in Singapore, as wireless-regdb is now maintained once again and updated Singapore regulatory rules have been released. | ||
+ | |||
+ | |||
+ | This information is just provided for reference in case one needs to test changes to wireless-regdb on an OpenWrt wireless AP. | ||
===== Motivation ===== | ===== Motivation ===== | ||
- | As wireless-regdb | + | As wireless-regdb |
Thankfully, it is pretty straightforward to set up a functional Wi-Fi 6E network, as only the Access Point requires a regulatory update, while stations (clients) do not. This is because the regulatory framework restricts [[https:// | Thankfully, it is pretty straightforward to set up a functional Wi-Fi 6E network, as only the Access Point requires a regulatory update, while stations (clients) do not. This is because the regulatory framework restricts [[https:// | ||
- | ===== Making | + | ===== I Am Lazy and Trusting ===== |
+ | |||
+ | Running OpenWrt 23.05.2? Here is my prebuilt package using the steps below (Option B): {{ : | ||
+ | |||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | |||
+ | ===== Building | ||
+ | |||
+ | ==== Prerequisite - Prepare OpenWrt Build Environment ==== | ||
+ | |||
+ | - Install [[https:// | ||
+ | - Clone OpenWrt source (adjust branch as needed, depending on what you're running):\\ '' | ||
+ | - Configure the build:\\ '' | ||
+ | - Target system: '' | ||
+ | - Target profile: '' | ||
+ | - Firmware → wireless-regdb → ''< | ||
+ | - Exit and save | ||
+ | - Build tools and toolchain (this will take ~30 min, depending on your CPU performance): | ||
+ | |||
+ | ==== Option A - Quick and Dirty - Using a Patch ==== | ||
+ | |||
+ | This is quick and dirty because (1) it generates a package with the same version number (unless you update the Makefile metadata) and (2) it will break with a change in wireless-regdb releases that change db.txt or (3) the patch series that comes with OpenWrt. | ||
+ | |||
+ | This was only tested on OpenWrt=v23.05.2 and wireless-regdb=2023.09.01. | ||
+ | |||
+ | - Download the snippet below to your cloned OpenWrt repo (it goes in '' | ||
+ | Index: wireless-regdb-2023.09.01/ | ||
+ | =================================================================== | ||
+ | --- wireless-regdb-2023.09.01.orig/ | ||
+ | +++ wireless-regdb-2023.09.01/ | ||
+ | @@ -1584,25 +1584,27 @@ country SE: DFS-ETSI | ||
+ | # 60 GHz band channels 1-4 (ETSI EN 302 567) | ||
+ | | ||
+ | |||
+ | -# https:// | ||
+ | -# IMDA TS SRD, Issue 1 Revision 1, April 2019, subsequently "IMDA TS SRD" | ||
+ | -# 2400 - 2483.5 MHz: IMDA TS SRD, Table 1 (25); ANSI C63.10-2013 and FCC Part 15 Section 15.247 or EN 300 328 | ||
+ | -# 5150 - 5350 MHz: IMDA TS SRD, Table 1 (29); FCC Part 15 Section 15.407 (1) 5.15-5.25 GHz (2) 5.25-5.35 GHz; EN 301 893 | ||
+ | -# 5470 - 5725 MHz: IMDA TS SRD, Table 1 (30); FCC Part 15 Section 15.407 (2) 5.47-5.725 GHz; EN 301 893 | ||
+ | -# 5725 - 5850 MHz: IMDA TS SRD, Table 1 (27); FCC Part 15 Section 15.247; FCC Part 15 Section 15.407 (3) 5.725-5.85 GHz | ||
+ | -# 57000 - 66000 MHz: IMDA TS SRD, Table 1 (31); ETSI EN 302 567 | ||
+ | -# Note: 27dBm for 5470-5725MHz bands is 3dBm reduction per FCC Part 15 Section 15.407 (2) 5.47-5.725 GHz; EN 301 893 as referenced by IMDA TS SRD | ||
+ | +# https:// | ||
+ | +# IMDA TS SRD, Issue 1 Revision 3, Sep 2023, subsequently "IMDA TS SRD" | ||
+ | +# 2400 - 2483.5 MHz: IMDA TS SRD, Table 1 Sub-band 32e | ||
+ | +# 5150 - 5350 MHz: IMDA TS SRD, Table 1 Sub-band 33a | ||
+ | +# 5470 - 5725 MHz: IMDA TS SRD, Table 1 Sub-band 34 | ||
+ | +# 5725 - 5850 MHz: IMDA TS SRD, Table 1 Sub-band 35 | ||
+ | +# 5945 - 6425 MHz: IMDA TS SRD, Table 1 Sub-band 45b | ||
+ | +# 57000 - 66000 MHz: IMDA TS SRD, Table 1 Sub-band 40 | ||
+ | +# Note: 500mW for 5470-5725MHz bands per FCC Part 15 Section 15.407 (2) 5.47-5.725 GHz as referenced by IMDA TS SRD | ||
+ | # | ||
+ | -# Note: The transmit power for 5250-5350MHz bands can be raised by 3dBm when TPC is implemented: | ||
+ | -# Note: The transmit power for 5470-5725MHz bands can be raised by 3dBm when TPC is implemented: | ||
+ | +# Note: The transmit power for 5250-5350MHz bands can be raised by 3dBm when TPC is implemented: | ||
+ | +# Note: The transmit power for 5470-5725MHz bands can be raised by 3dBm when TPC is implemented: | ||
+ | |||
+ | | ||
+ | - (2400 - 2483.5 @ 40), (23) | ||
+ | - (5150 - 5250 @ 80), (23), AUTO-BW | ||
+ | - (5250 - 5350 @ 80), (20), DFS, AUTO-BW | ||
+ | - (5470 - 5725 @ 160), (27), DFS | ||
+ | - (5725 - 5850 @ 80), (30) | ||
+ | - (57000 - 66000 @ 2160), (40) | ||
+ | + (2400 - 2483.5 @ 40), (200 mW) | ||
+ | + (5150 - 5250 @ 80), (200 mW), AUTO-BW | ||
+ | + (5250 - 5350 @ 80), (100 mW), DFS, AUTO-BW | ||
+ | + (5470 - 5725 @ 160), (500 mW), DFS, AUTO-BW | ||
+ | + (5725 - 5850 @ 80), (1000 mW), AUTO-BW | ||
+ | + (5945 - 6425 @ 320), (250 mW), NO-OUTDOOR | ||
+ | + (57000 - 66000 @ 2160), (10000 mW) | ||
+ | |||
+ | # SI as part of EU/CEPT accepted decisions 2005/513/EC (5GHz RLAN, EN 301 893) | ||
+ | # and 2006/771/EC (amended by 2008/ | ||
+ | - '' | ||
+ | - Locate your freshly baked package:\\ '' | ||
+ | |||
+ | ==== Option B - Cleaner - Using Our Own wireless-regdb Repository ==== | ||
+ | |||
+ | This is cleaner because the generated package version will track both the source commit ID and date, making it unambigious which package you have installed. | ||
+ | |||
+ | === Make Changes to wireless-regdb' | ||
Long way: | Long way: | ||
Line 19: | Line 106: | ||
- [[https:// | - [[https:// | ||
- | ===== Building | + | === Building wireless-regdb Package |
The proper way to do this would be to create a new OpenWrt package with a different name, e.g. wireless-regdb-sg6e that provides wireless-regdb, | The proper way to do this would be to create a new OpenWrt package with a different name, e.g. wireless-regdb-sg6e that provides wireless-regdb, | ||
- | - Install [[https:// | + | |
- | - Clone OpenWrt source (adjust branch as needed, depending on what you're running):\\ '' | + | |
- | - Choose the target architecture and device of your AP (the built package is actually generic/ | + | |
- | - Build tools and toolchain (this will take ~30 min, depending on your CPU performance): | + | |
- Download the snippet below to your cloned OpenWrt repo and run '' | - Download the snippet below to your cloned OpenWrt repo and run '' | ||
diff --git a/ | diff --git a/ | ||
Line 49: | Line 133: | ||
| | ||
- | + | ||
- | </ | + | </ |
* PKG_SOURCE_URL - Git repo URL | * PKG_SOURCE_URL - Git repo URL | ||
* PKG_SOURCE_VERSION - Git commit hash | * PKG_SOURCE_VERSION - Git commit hash | ||
Line 63: | Line 147: | ||
- Copy the package to your AP:\\ '' | - Copy the package to your AP:\\ '' | ||
- | - Install the package on your AP:\\ '' | + | - Install the package on your AP:\\ '' |
- Reboot your AP:\\ '' | - Reboot your AP:\\ '' | ||
- Try out your updated regulatory rules! | - Try out your updated regulatory rules! |