Wifi country setting in Mango

I was having some problems finding my Mango’s SSID only from certain devices. Some devices would see the network and connect. Others would not find it in their scan of available wifi networks.

IT turns out the issue was that the Mango’s WiFi radio settings come set to ‘CN’ by default. The US apparently does not permit use of channels 12-14 on 2.4GHz, so some devices sold here have these disabled. Auto channel selection was enabled, and when set to channel 12, 13, or 14, some devices would not find the Mango in a scan.

The setting appears to be wireless.mt7628.country in UCI. However, changing this from ‘CN’ to ‘US’ and committing/rebooting did not fix the problem for me.

I checked the country registration using
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
(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)

The only way I was able to define the country as ‘US’ to prevent use of channels 12-14 was to issue

iw reg set US

Once I did, iw reg get returned

global
country US: DFS-FCC
(2402 - 2472 @ 40), (N/A, 30), (N/A)
(5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
(5735 - 5835 @ 80), (N/A, 30), (N/A)
(57240 - 63720 @ 2160), (N/A, 40), (N/A)

Sharing in case anyone else runs into this issue.

First of all, is it the equipment purchased from our official company, the platform to buy, trouble to provide the order number and purchase platform? Our default factory country code is US
Secondly, this problem can be solved by ssh login routing background, and then uci settings are resolved. The steps are as follows:
uci set wireless.mt7628.country=‘US’
uci set wireless.mt7628.region=‘0’
uci commit wireless
wifi