hostapd is pretty useless without regdb
I’m trying to setup a hostap with Alpine. The problem is that Alpine is not shipping wireless-regdb which is needed to set the right freqs for your country. This restricts hostapd to a very limited set of allowed frequencies.
<code class="shell"> router:~# iw reg set DE router:~# iw reg get country 00: DFS-UNSET (2402 - 2472 @ 40), (6, 20) (2457 - 2482 @ 40), (6, 20), PASSIVE-SCAN (2474 - 2494 @ 20), (6, 20), NO-OFDM, PASSIVE-SCAN (5170 - 5250 @ 160), (6, 20), PASSIVE-SCAN (5250 - 5330 @ 160), (6, 20), DFS, PASSIVE-SCAN (5490 - 5730 @ 160), (6, 20), DFS, PASSIVE-SCAN </code>
How to solve:
Create packages for crda and wireless-regdb (I think), see https://wireless.wiki.kernel.org/en/developers/Regulatory
Or copy db.txt from wireless-regdb into the kernel source directory and
recompile the kernel with
If you do not want to install CRDA on a host, you can simply enable the CONFIG_CFG80211_INTERNAL_REGDB on your kernel. Once enabled you can place the db.txt from the wireless-regdb into net/wireless/db.txt. The downside to using this option is that you will need to rebuild your kernel for any regulatory updates, therefore using CONFIG_CFG80211_INTERNAL_REGDB is not recommended.
(from redmine: issue id 3910, created on 2015-02-04)
- Revision 0b76a6c6 by Stefan Wagner on 2016-05-05T15:46:48Z:
testing/wireless-regdb: new aport Linux Central Regulatory Domain Database https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb ref #3910
- Revision 9675fc13 by Stefan Wagner on 2016-05-05T15:47:25Z:
testing/crda: new aport Linux Central Regulatory Domain Agent http://www.linuxwireless.org/en/developers/Regulatory/CRDA/ ref #3910