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/31 03:23] – Add alternative quick and dirty route of dropping a quilt patch 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:// | ||
| + | |||
| + | ===== I Am Lazy and Trusting ===== | ||
| + | |||
| + | Running OpenWrt 23.05.2? Here is my prebuilt package using the steps below (Option B): {{ : | ||
| + | |||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| ===== Building a Custom wireless-regdb Package ===== | ===== Building a Custom wireless-regdb Package ===== | ||
| Line 12: | Line 24: | ||
| - Install [[https:// | - Install [[https:// | ||
| - | - Clone OpenWrt source (adjust branch as needed, depending on what you're running):\\ '' | + | - Clone OpenWrt source (adjust branch as needed, depending on what you're running):\\ '' |
| - | - Choose | + | - Configure |
| - | - Build tools and toolchain (this will take ~30 min, depending on your CPU performance): | + | - 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 ==== | ==== Option A - Quick and Dirty - Using a Patch ==== | ||
| Line 20: | Line 36: | ||
| 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 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.0 and wireless-regdb=2023.09.01. | + | 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 '' | - Download the snippet below to your cloned OpenWrt repo (it goes in '' | ||
| Line 70: | Line 86: | ||
| # SI as part of EU/CEPT accepted decisions 2005/513/EC (5GHz RLAN, EN 301 893) | # SI as part of EU/CEPT accepted decisions 2005/513/EC (5GHz RLAN, EN 301 893) | ||
| - | # and 2006/771/EC (amended by 2008/ | + | # and 2006/771/EC (amended by 2008/ |
| - | </ | + | - '' |
| - | - '' | + | |
| - Locate your freshly baked package:\\ '' | - Locate your freshly baked package:\\ '' | ||
| Line 118: | 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 132: | 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! | ||