-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | WiFi Hotspot: Set country code during installation #5407
Comments
Many thanks for your report. How do you know that the country code is not set correctly? Did you check The I can basically verify this on my RPis and x86 systems with Bullseye, where changing the country code via CRDA to something that does not match my country does not survive a reboot, it is set automatically correctly. When connecting via WiFi to an access point, this all makes sense since the AP can pass the country code. But when using the adapter as hotspot, I don't know how the kernel should know which country code is the correct one. Basically I need to read into this topic and run some tests. |
After the install, if I go to And here's the output of
It seems that without connecting to any AP (the wifi interface is used for the hotspot only and the ethernet one is used for the internet access) the country code does not get set. |
Probably CRDA is even messing with the auto-selection. At least worth to give a shot: apt purge crda
reboot
# after reboot
iw reg get If it remains true that it needs to be set for the hotspot: apt install crda
dietpi-config Then configure it there. What we should then do is applying the country code during WiFi hotspot installation. So as before, it is skipped during first boot if WiFi is not enabled (as Internet facing adapter), but it is applied when WiFi hotspot is installed during first run installs, including automated installs. |
Unfortunately, after purging CRDA and rebooting, the country code was still not set. So yes, I think we should set it during WiFi Hotspot installation. As a temporary workaround I put the following in # Set WiFi Country Code
/boot/dietpi/func/dietpi-set_hardware wificountrycode "$(sed -n '/^[[:blank:]]*AUTO_SETUP_NET_WIFI_COUNTRY_CODE=/{s/^[^=]*=//p;q}' /boot/dietpi.txt)" |
- DietPi-Software | WiFi Hotspot: Resolved an issue where the WiFi country code was not applied when the WiFi Hotspot was installed via automated first run setup. Many thanks to @matteocarnelos for reporting this issue: #5407
Solved with: c864974 |
Creating a bug report/issue
Required Information
bullseye 1
Linux DietPi 5.15.32-v7+ #1538 SMP Thu Mar 31 19:38:48 BST 2022 armv7l GNU/Linux
RPi 3 Model B+ (armv7l)
Additional Information (if applicable)
Steps to reproduce
dietpi.txt
file:Expected behaviour
AUTO_SETUP_NET_WIFI_COUNTRY_CODE
indietpi.txt
Actual behaviour
Extra details
Issue probably due to the fact that, since the wifi adapter is disabled during first boot, the country code is not applied, as said by @MichaIng in this forum post:
As said, a possible fix is to set the wifi country code regardless wether WiFi is enabled or not.
Thanks for the help!
The text was updated successfully, but these errors were encountered: