Closed mweinelt closed 6 years ago
Raspbian does not contain regulatory.db either, so I’m not sure where to take it from?
regulatory.db
is the signed version of the regulatory domain specification, it's being made available at https://wireless.wiki.kernel.org/en/developers/Regulatory/wireless-regdb.
I run stretch on an APU2c4 with an ath10k wifi card and it does not experience this issue, but I cannot find a regulatory.db on that either. Instead it has a regulatory.bin
from the wireless-regdb
package: https://packages.debian.org/sid/all/wireless-regdb/filelist
Maybe this is related to a recent kernel change.
Edit: Found the debian issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892229
Thanks for identifying the Debian issue for this. I’ll close the issue now, as the problem lies with the kernel, not our Raspberry Pi image build.
On boot we can see that the
regulatory.db
is missing and cannot be loaded. I couldn't find it in any debian package.Nevertheless I can set the regulatory domain through hostapds
country
setting.But apparently it doesn't honor the 20 dBm txpower limit.
Setting a txpower limit via
ìw
sets txpower to 0.0 dBm.So I revert it back to
iw dev wlan0 set txpower auto
and it's back up at 31 dBm.What seems to work is setting the txpower through
iwconfig
, which uses ioctls instead of netlink.I verified that the signal strength changes considerably between
auto
(31 dBm) andfixed 20
(0 dBm) and it's not just a visual glitch. Setting the txpower throughiwconfig
works just fine, just not throughiw
.