I have 2 TP Link devices, C2600 and C7 v4 running 22.03.2 (although I have seen this in all the older versions I have used too).
I have changed the country code from the UK default, and then changed the channels and power - all good. Until reboot, and then the wireless goes to 0 power.
Then I can use the UI to set any power, and the Status country code changes to ZA, after which I can then use the expanded UI list to use the wider range of powers.
Can anyone explain this? What exactly is the UI doing - I am thinking I should be able to script at startup. A simple restart of the network interface is not enough though.
It's not quite clear to me which country code you actually selected, respectively wanted to set. Probably best to paste the full /etc/config/wireless (redact ESSID and PSK).
My guess would be a mismatch between 2.4 GHz and 5 GHz country settings, aside from this, with both radios QCA based for either router, there shouldn't be much interfering.
Interesting pointer - I have /lib/firmware/regulatory.db although it is a binary file ("file" reports: CRDA wireless regulatory database file) so not easily editable.
To summarise:
The hardware thinks it is GB (UK).
I have left the 2.4 GHz radio in GB
I have changed the 5 GHz radio to ZA and increased the power to 30 dBm (via UI)
This works fine until I reboot - the 5 GHz radio does not come up and UI shows that in the screenshot; the radio has gone back to GB so the power setting is no longer valid.
It looks to mee like the UI is able to change the country code, but that either the startup script is not doing it or it's getting overwritten. If I can script whatever the UI is doing after startup, that would be a workaround.
Well, what are you expecting to happen then?
Set one regulatory domain for all radios - and it'll better be your real one, as anything else messes up the situation for all clients in your neighbourhood and would be blatantly illegal.
I would have expected the result after a reboot to match the result after manual changes in the UI, when the actual configuration is the same.
You are right that if I set both radios to ZA they do both come up after reboot, thanks. But I am still curious as to the boot process/how the UI applies its settings.