Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Idea: Use Raspberry Pi Imager to configure WLAN country, time zone & keyboard layout
#10
Also played around with a vanilla bullseye 64-bit lite image. I get the same result as @TheOldPresbyope, no country code in /etc/wpa_supplicant/wpa_supplicant.conf. Yet the country code is set correctly in /etc/default/crda

Code:
# Set REGDOMAIN to a ISO/IEC 3166-1 alpha2 country code so that iw(8) may set
# the initial regulatory domain setting for IEEE 802.11 devices which operate
# on this system.
#
# Governments assert the right to regulate usage of radio spectrum within
# their respective territories so make sure you select a ISO/IEC 3166-1 alpha2
# country code suitable for your location or you may infringe on local
# legislature. See `/usr/share/zoneinfo/zone.tab' for a table of timezone
# descriptions containing ISO/IEC 3166-1 alpha2 country codes.

REGDOMAIN=DE

It also shows up correctly when running the command iw reg get

Code:
global
country DE: DFS-ETSI
       (2400 - 2483 @ 40), (N/A, 20), (N/A)
       (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
       (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
       (5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
       (5725 - 5875 @ 80), (N/A, 13), (N/A)
       (5945 - 6425 @ 160), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
       (57000 - 66000 @ 2160), (N/A, 40), (N/A)

phy#0
country 99: DFS-UNSET
       (2402 - 2482 @ 40), (6, 20), (N/A)
       (2474 - 2494 @ 20), (6, 20), (N/A)
       (5140 - 5360 @ 160), (6, 20), (N/A)
       (5460 - 5860 @ 160), (6, 20), (N/A)


So maybe /etc/default/crda is the correct location to look up the country?

The locale settings are not so important from my point of view. It's probably even best to stick to en_US.UTF-8 here to have consistent formats ...

Regards
Jens
Reply


Messages In This Thread
RE: Use Raspberry Pi Imager to configure WLAN country, time zone & keyboard layout - by jenzd - 01-03-2024, 11:36 PM

Forum Jump: