03-17-2022, 11:59 AM
(03-17-2022, 11:26 AM)TheOldPresbyope Wrote:(03-17-2022, 11:05 AM)Tim Curtis Wrote: Right, setting the wifi country code only makes an update to wpa_supplicant.conf "country=" line.
Maybe check to see what raspi_config does?
Just checked raspi-config (https://github.com/RPi-Distro/raspi-conf...spi-config)
After some prelim to get the two-char country code into $COUNTRY, we find starting at line 609 that iw reg set is used
Code:if [ $? -eq 0 ];then
wpa_cli -i "$IFACE" set country "$COUNTRY"
wpa_cli -i "$IFACE" save_config > /dev/null 2>&1
if iw reg set "$COUNTRY" 2> /dev/null; then
ASK_TO_REBOOT=1
fi
@philrandal
Interesting find. Yet another place to hide configuration info --- the hallmark of Linux! Out of the box, that file doesn't exist either in moOdeOS (e.g., Raspberry Pi OS) or my Linux Mint laptop but obviously one can define it.
On your first point, I don't see how the country code can be retrieved from the router before the access point has been discovered.
Regards,
Kent
I'll add that command to the wifi config code block for upcoming 8.0.1