Yes, correct I did insert the setting at config wifi-device section,
and I keyed in my own country code. Not 'US'
The result is Device is not active, as I mentioned earlier.
Wouldn't it make a difference, if I key 'US' for the country that I pretend to be coming from?
Well, I will not be compliant with the regulatory domain
I backed up the tar.gz file, and unziped it to modify the etc/config/wireless file.
I add the ``option country 'US'` just for the sake of testing only.
Later I will change to my own country code.
Save the wireless file, after editing using notepad++.
Created the tar file with 7-zip and then compressed again in gz format
Uploaded the modified gz file using Restore
Once was restorsed, the router will automatically rebooted itself
Once the router rebooted, I restarted the interfaces.
I ssh into the router, and do a: cat /etc/config/wireless
The result was the same, the line that I keyed in option country 'US'
in the config wifi-device section, it did not stick.
What I typed was simply not showing up.
You avoid the unix/windows translations issue. unix uses LineFeed only for new lines. Windows uses Carridge Return/Line Feed for new line. that WILL make unix barf.
WinSCP gives you dual explorer type windows and you can copy/paste into the internal editor and it will save it to your router with the correct unicode.
I did tried another path, that is install nano in my router
SSh into my router and open up the wireless text file: nano etc/config/wireless
Open the file with nano, and add the line: option country 'US' into config wifi-device section for both Radio0 and Radio1.
I saved the file, exit then I do:
uci commit wireless
reboot
The router rebooted, I SSH again and did a: cat /etc/config/wireless
But in the end, the result is the same, I cannot get option country 'US' to stick. This line is completely disappeared.
As mentioned above, when you use a text editor, you don't need to run uci commit.
Also mentioned above, run wifi up after editing and saving the config file...a reboot is not needed.
And finally (you guessed it...mentioned above), you need to use your own country code.
Give it a try...I use it almost exclusively.
It's also has a editor (will default to Notepad, or whatever your default text editor is), so the same principles apply for editing in WinSCP as in nano. (make the change, save it, no uci commit, run wifi up, use your own country code).
Ok now the line: option country 'XX' (example only XX is not a real country code) is sticking
But...........I have some problems:
In Luci, Network, Wireless, click on edit, go to Advanced Setting tab, Country = BLANK/Empty
2.4Ghz radio is completely down, and it is not active, no matter how times I restart. 5GHz radio is working.
RPCerror message in red appeared. Once you press the dismiss button, the Luci web page will
not load at all. Only can see the spinning wheel, with the message: loading view....I rebooted
the router, and now wireless GUI is missing, so now to fix this problem?
I ssh into router, and type the command: nano etc/config/wireless,
nano cannot find the wireless file.
I went ahead and grabbed the sysupgrade firmware and reinstalled OpenWRT again.
Only then, I am back in business.
I think is best to leave out the option country 'XX', so that it will run more stably.
When I encountered the Luci was crashing, I would just do *perform reset* as shown in your previous post.
I edited using Nano on the /etc/config/wireless text file on the 5GHz and added:
option country 'XX" XX- my country code.
save the file
run the command wifi down and then wifi up
everything is working fine.
As long as I don't touch the 5GHz radio interface setting, and press Save & Apply button,
I won't crash Luci wireless interface.
I have no idea of rolling back to the previous release. Like: 21.02.1 or 21.02.0
This link above that you have shared, which release it this?