Site Tools


projects:software:openwrt_custom_wireless-regdb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:software:openwrt_custom_wireless-regdb [2023/11/20 04:08] – Update to OpenWrt 23.05.2 and use parallel make; add note about patch newlines Andrew Yongprojects: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 has [[http://lists.infradead.org/pipermail/wireless-regdb/2023-May/001439.html|no]] [[https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb#sending_updates_to_the_regulatory_database#sending_updates_to_the_regulatory_database|maintainer]] at time of writing, it'unlikely that [[http://lists.infradead.org/pipermail/wireless-regdb/2023-September/001454.html|my Wi-Fi 6E regulatory updates for Singapore]] will propagate to Linux distributions anytime soon.+As wireless-regdb had[[http://lists.infradead.org/pipermail/wireless-regdb/2023-May/001439.html|no]] [[https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb#sending_updates_to_the_regulatory_database#sending_updates_to_the_regulatory_database|maintainer]] it was unlikely that [[http://lists.infradead.org/pipermail/wireless-regdb/2023-September/001454.html|my Wi-Fi 6E regulatory updates for Singapore]] would propagate to Linux distributions anytime soon (as of the September 2023 IMDA TS SRD release).
  
 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://wireless.wiki.kernel.org/en/developers/regulatory/processing_rules#beacon_hints|the initiation of radiation (beacons)]], while clients are free to connect to any frequency the hardware is able to receive beacons on (even if it cannot initiate radiation on that frequency). 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://wireless.wiki.kernel.org/en/developers/regulatory/processing_rules#beacon_hints|the initiation of radiation (beacons)]], while clients are free to connect to any frequency the hardware is able to receive beacons on (even if it cannot initiate radiation on that frequency).
Line 21: Line 25:
   - Install [[https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem|OpenWrt build prerequisites]]   - Install [[https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem|OpenWrt build prerequisites]]
   - Clone OpenWrt source (adjust branch as needed, depending on what you're running):\\ ''%%git clone --depth=1 --branch v23.05.2 https://github.com/openwrt/openwrt.git%%''   - Clone OpenWrt source (adjust branch as needed, depending on what you're running):\\ ''%%git clone --depth=1 --branch v23.05.2 https://github.com/openwrt/openwrt.git%%''
-  - Choose the target architecture x86 (or respective to the computer you are building on) to save CPU time by not having to cross-compile (the wireless-regdb package is noarch):\\ ''make menuconfig''+  - Configure the build:\\ ''make menuconfig'' 
 +    - Target system: ''x86'' (or respective to the computer you are building on) to save CPU time by not having to cross-compile (the wireless-regdb package is noarch) 
 +    - Target profile: ''Generic x86'' (this is the default) 
 +    - Firmware → wireless-regdb → ''<M>'' 
 +    - Exit and save
   - Build tools and toolchain (this will take ~30 min, depending on your CPU performance):\\ ''make -j$(getconf _NPROCESSORS_ONLN) tools/install''\\ ''make -j$(getconf _NPROCESSORS_ONLN) toolchain/install''   - Build tools and toolchain (this will take ~30 min, depending on your CPU performance):\\ ''make -j$(getconf _NPROCESSORS_ONLN) tools/install''\\ ''make -j$(getconf _NPROCESSORS_ONLN) toolchain/install''
  
Line 139: Line 147:
  
   - Copy the package to your AP:\\ ''scp -O bin/packages/*/base/wireless-regdb*.ipk root@YOUR_ROUTER_IP:/tmp/''   - Copy the package to your AP:\\ ''scp -O bin/packages/*/base/wireless-regdb*.ipk root@YOUR_ROUTER_IP:/tmp/''
-  - Install the package on your AP:\\ ''ssh root@YOUR_ROUTER_IP''\\ ''opkg install /tmp/wireless-regdb*.ipk''+  - Install the package on your AP:\\ ''ssh root@YOUR_ROUTER_IP''\\ ''opkg install %%--%%force-downgrade /tmp/wireless-regdb*.ipk''
   - Reboot your AP:\\ ''ssh root@YOUR_ROUTER_IP''\\ ''reboot''   - Reboot your AP:\\ ''ssh root@YOUR_ROUTER_IP''\\ ''reboot''
   - Try out your updated regulatory rules!   - Try out your updated regulatory rules!
projects/software/openwrt_custom_wireless-regdb.1700453280.txt.gz · Last modified: 2023/11/20 04:08 by Andrew Yong