I'm not entirely convinced NetworkManager is working correctly this regard? I *was* checking the wifi regulatory domain with "iw reg get" which consistently shows UNSET both globally and for phy#0 under the desktop for Pi images:
Still, perhaps "iw" doesn't know about changes that wpa_supplicant makes? On a freshly flashed jammy pi desktop card, I get the following output when looking for REGDOM in the wpa_supplicant logs:
The "WORLD" region is presumably consistent with "UNSET" so it doesn't look like NetworkManager or wpa_supplicant is setting things correctly there. I wondered if perhaps it this only works on some APs? So here's the output from my regular development Pi. This also runs the jammy desktop, but it's not a freshly flashed image -- it's been upgraded thru every release since hirsute so it's probably a bit crufty -- but it has travelled with me to various places so it's seen a few different access points (it spends most of its time on ethernet at home though, so the lack of lots of REGDOM changes is not too surprising):
So the upgraded image never sets "GB" either, but it did correctly figure out I'd dragged it into Germany (DE) for the engineering sprint in late February! Still, after that it was back to "WORLD" back in blighty.
Am I looking in the wrong place for REGDOM events? Is there another wpa_supplicant instance that's setting things correctly? Or perhaps there's some setting I'm missing? (although that sounds unlikely given it did correctly figure out Germany).
I'm not entirely convinced NetworkManager is working correctly this regard? I *was* checking the wifi regulatory domain with "iw reg get" which consistently shows UNSET both globally and for phy#0 under the desktop for Pi images:
$ iw reg get
global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (N/A, 20), (N/A)
(2457 - 2482 @ 20), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
(5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0), (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)
Still, perhaps "iw" doesn't know about changes that wpa_supplicant makes? On a freshly flashed jammy pi desktop card, I get the following output when looking for REGDOM in the wpa_supplicant logs:
$ journalctl -u wpa_supplicant -g REGDOM 4985f9e8ded5b5d c3 -- 727]: wlan0: CTRL-EVENT- REGDOM- CHANGE init=CORE type=WORLD
-- Boot 732bf3d726d543d
May 09 11:19:54 miss-piggy wpa_supplicant[
The "WORLD" region is presumably consistent with "UNSET" so it doesn't look like NetworkManager or wpa_supplicant is setting things correctly there. I wondered if perhaps it this only works on some APs? So here's the output from my regular development Pi. This also runs the jammy desktop, but it's not a freshly flashed image -- it's been upgraded thru every release since hirsute so it's probably a bit crufty -- but it has travelled with me to various places so it's seen a few different access points (it spends most of its time on ethernet at home though, so the lack of lots of REGDOM changes is not too surprising):
-- Boot 3342ed4b84f14e6 a8f7b900d240b2c 4d -- 58d9b0a39d5d51c 81 -- 48fc16329f73ad5 96 -- bba39cc9ab9bce9 69 -- 1081]: wlan0: CTRL-EVENT- REGDOM- CHANGE init=CORE type=WORLD ea56af3152178c1 99 -- 1077]: wlan0: CTRL-EVENT- REGDOM- CHANGE init=CORE type=WORLD bad47cb42b9ac25 6f -- eae2f948ee1e4ef 38 -- 985d5317cd536b5 4a -- fa66a330acf17f1 8c -- 6b21988b903d1b4 cd -- 89056adacb374d2 69 -- a899e467a2debb2 01 -- 696caf2b3e4c402 dd -- 87530]: wlan0: CTRL-EVENT- REGDOM- CHANGE init=CORE type=WORLD bbc2e72371a14c8 ab -- 4a7bf370998aaf7 dd -- eb75c9950129edd 5b -- 8b1b07d88bdaff7 ea -- 9a1b58cab78ac87 5c -- 09f5b93f2289254 55 -- b9fbb913e0a0f0c 29 -- 88d38f498cd8bfa 2b -- fa60489603ef8b7 71 -- 1a8cfe904bc3039 89 -- 0abeda9b3a79ac3 7a -- 995cce77b9a908d 3f -- 5b3fcaa5b978f3e 70 -- 880079f7bbf0740 0a -- 9bd544028d01c6e 96 -- 6a2426544f5f98b 88 -- 996db1bfa376ec5 62 -- 68b27e93adff373 e1 -- 683395e88d202a8 e1 -- 1030]: wlan0: CTRL-EVENT- REGDOM- CHANGE init=CORE type=WORLD eb7884859c306ca 4c -- 8ac058670dbaae6 72 -- 1032]: wlan0: CTRL-EVENT- REGDOM- CHANGE init=CORE type=WORLD 48e9a94beaf72f1 23 -- 3ba3445bfa7fe4b 1b -- eb8d65a1f7e6df5 df -- 3ba3445bfa7fe4b 1b -- eb8d65a1f7e6df5 df -- ea168ea8c1d06d1 48 -- 1027]: wlan0: CTRL-EVENT- REGDOM- CHANGE init=CORE type=WORLD 0aa1560a4fe998f 19 -- 6a4465dd2122f64 a8 -- 1048]: wlan0: CTRL-EVENT- REGDOM- CHANGE init=USER type=COUNTRY alpha2=DE cbece9aeceb9b19 cb -- 4ba65bc96d749a9 b7 -- cbece9aeceb9b19 cb -- 1040]: wlan0: CTRL-EVENT- REGDOM- CHANGE init=CORE type=WORLD 4ba65bc96d749a9 b7 -- 1040]: wlan0: CTRL-EVENT- REGDOM- CHANGE init=CORE type=WORLD b9be508eaf11667 dd -- a959844ad1773e6 c1 -- 3b0541b66700b5f b3 -- 49d9e869c1fbcde 92 -- dae933c7a598e1a e9 -- ab527c36f61594d 03 -- b9a5dcfa0f23c55 43 -- 582947dceb31f3a fe -- 2a60147f2a62820 25 -- d9c414320f6996f b0 -- 8828bc78ff04d22 81 -- 1070]: wlan0: CTRL-EVENT- REGDOM- CHANGE init=CORE type=WORLD 698554783a15c5f 0c -- 69a12b0f70f4946 49 -- 8b31b0df25ae376 44 -- 1086]: wlan0: CTRL-EVENT- REGDOM- CHANGE init=CORE type=WORLD 292419c5c983cf1 4d -- a8f275a3b921a1a 38 -- cb8c3d28c27ef17 86 -- f9753abe546db7c f9 -- c83440d77734168 28 -- 8882374ce194da8 06 -- ca38c4e3278367e a4 -- 6a66f200b363890 bd -- 3a1fd95a55537be c1 -- 0b27e12f8930db7 ed -- 68eafcfcb4403bf 0a -- b9410dab66a35de 2c -- 689e6ab03812834 d5 -- 888de3c26bbcb24 ec -- 1ba66aca930e18c 57 -- 0ba805e2a261fec 17 -- 2969b751ea7edcc a1 -- c80c33303f42b9e 1e -- 195c7fec08597b4 f2 -- aa928aaabcfd871 81 -- 5beaa3a4c3d9c38 c2 -- ea7511266682987 0a --
-- Boot d9087ec569c64e2
-- Boot b4c27a9655d747d
-- Boot d431767f6d89494
Sep 29 00:09:43 kermit wpa_supplicant[
-- Boot 345a7579a52147a
Sep 29 09:28:02 kermit wpa_supplicant[
-- Boot 624126fce6cc45a
-- Boot e424d65195804a6
-- Boot 77fb125a0ecc4df
-- Boot da38e67821874b3
-- Boot 02be9377913d488
-- Boot 8a6dc8a10b0f426
-- Boot 85bbc4cfc473439
-- Boot fa07d0686c68401
Jan 14 15:09:22 kermit wpa_supplicant[
-- Boot 9e7e7bf75790439
-- Boot a70d0f388979422
-- Boot bd314e15c8f1415
-- Boot c54489d0e45b431
-- Boot 370a4871b0ec43f
-- Boot 4756c93714f2470
-- Boot 884e307c2a13455
-- Boot bad77d689f714ca
-- Boot 1cf2c96be69748a
-- Boot 09375e4eaaf9414
-- Boot 8fa2bdfb2e6e4ad
-- Boot 6c23de48f7a748d
-- Boot 364f760176b54df
-- Boot ff656412414f4c7
-- Boot ebb1115d58724cf
-- Boot 5c85c03736934ed
-- Boot 6051d9f10827419
-- Boot 4996ddb853a2482
-- Boot 0b7927e93a38434
Feb 14 09:57:26 kermit wpa_supplicant[
-- Boot 08038d28c346496
-- Boot b2c62ed0866d461
Feb 17 01:37:49 kermit wpa_supplicant[
-- Boot 5a2883f8ce074e7
-- Boot ec2157fa46fa48a
-- Boot e2dbc92b2764473
-- Boot ec2157fa46fa48a
-- Boot e2dbc92b2764473
-- Boot a8ef52e6c63949c
Feb 23 10:43:59 kermit wpa_supplicant[
-- Boot 319081b9562a4c2
-- Boot 4d3841cc1dbb490
Feb 26 18:18:07 kermit wpa_supplicant[
-- Boot 8729c7f4e1ae45d
-- Boot 8034051089274a3
-- Boot 8729c7f4e1ae45d
Mar 03 10:07:39 kermit wpa_supplicant[
-- Boot 8034051089274a3
Mar 11 11:20:39 kermit wpa_supplicant[
-- Boot dcd973755091479
-- Boot b0c3f4f9a2d64a8
-- Boot e0fc49c4dc89423
-- Boot 1f2be083fe2e428
-- Boot 76ecf6d5e894408
-- Boot 5fcfbff4b29f4f2
-- Boot 15f5817168b84c3
-- Boot 44d914f21c4444d
-- Boot 238dbb8b6216448
-- Boot 9c66088689b641c
-- Boot d1cc9ac5cd304da
Apr 01 11:31:13 kermit wpa_supplicant[
-- Boot 42f146dbf914494
-- Boot 381cd6a085d34a9
-- Boot 58ca2d99d67641a
Apr 07 22:54:56 kermit wpa_supplicant[
-- Boot 5a5eea05df5f43f
-- Boot 136d1be22bf0465
-- Boot a054dd8d8fe7425
-- Boot 8f7d36b281744f7
-- Boot 890cf4c9b93540b
-- Boot f159c0c4c67b446
-- Boot 59124b1e8b87434
-- Boot cc7d8831649d493
-- Boot 2e9a85dc6919497
-- Boot cf0bca78a10f4d4
-- Boot 95e066d50b9a4f4
-- Boot d6b96bc9d2da48b
-- Boot 6a1885e322674da
-- Boot 265f11639efe4f6
-- Boot 5b96ffce43504e6
-- Boot f8ca9d9135d2495
-- Boot 866d560e03ec426
-- Boot 1a517bf700c14e4
-- Boot e85bdc80cb364b0
-- Boot 65488c22c3c0439
-- Boot c63d9371838e4c9
-- Boot 66e65c4fc40946e
So the upgraded image never sets "GB" either, but it did correctly figure out I'd dragged it into Germany (DE) for the engineering sprint in late February! Still, after that it was back to "WORLD" back in blighty.
Am I looking in the wrong place for REGDOM events? Is there another wpa_supplicant instance that's setting things correctly? Or perhaps there's some setting I'm missing? (although that sounds unlikely given it did correctly figure out Germany).