Skip to content

Instantly share code, notes, and snippets.

@shibajee
Created August 27, 2020 06:15
Show Gist options
  • Select an option

  • Save shibajee/4861767bc10fde9328ed59b817bcc521 to your computer and use it in GitHub Desktop.

Select an option

Save shibajee/4861767bc10fde9328ed59b817bcc521 to your computer and use it in GitHub Desktop.
Change region of Xiaomi routers to unlock all channel:
1. Login to ur router in browser.
2. Open a new tab and paste this
http://192.168.31.1/cgi-bin/luci/;stok=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/api/xqsystem/set_country_code?country=CN
get the stok value from login tab and replace it in new tab and then hit enter.
3. Router will reboot automatically and on next login u will see all 5Ghz channel 36~48 and 149~165.
**u can also go with country=HK or country=TW (hongkong or taiwan)
@Coll147
Copy link

Coll147 commented Apr 25, 2025

It worked :D thanks

Xiaomi Ax3200 Mi wifi 1.0.83

1000109145

1000109143

@rexnomi
Copy link

rexnomi commented Aug 21, 2025

I was able to unlock upper channels (149 and above) of 5GHz WiFi on Ax3000. For me what I did was

  • Turned off smart connect i.e. separated 2.4GHz and 5GHz bands
  • First changed the location** and country code*** of satellite router then primary router to CN.
  • Changed the 5GHz bandwidth to 80MHz.

** http://192.168.31.1/cgi-bin/luci/;stok=xxxxxxxxxxxxxxxxxxxxxxxxx/api/xqsystem/set_location?location=CN *** http://192.168.31.1/cgi-bin/luci/;stok=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/api/xqsystem/set_country_code?country=CN
If you change the primary router first it will break the mesh network and you have to reset it. Also keep the wireless channel to auto because dropdown will not show the extended channels. I initalized the router with South Korea region and after changing the location to CN I changed the time zone of primaray router to Korea again as satellite/mesh router timezone was not changed with location change
image

I tried the instructions you mentioned, however at the link of the Country Code, it will come up with the below error {"msg":"Couldn't complete this action","code":1606} Can you please help me out here? I have paid a hefty amount with this router and seems like its a waste for 5G Band. :'(

First factory reset your Router.....
While setting wifi Name and Password don't use Combined wifi network......
Seperate the both 2.4 & 5ghz and Name them xyz & xyz 5G
After completing setup Open the router setting page and Follow these steps

First changed the location** and country code*** of satellite router then primary router to CN.
Changed the 5GHz bandwidth to 80MHz.
** http://192.168.31.1/cgi-bin/luci/;stok=xxxxxxxxxxxxxxxxxxxxxxxxx/api/xqsystem/set_location?location=CN
*** http://192.168.31.1/cgi-bin/luci/;stok=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/api/xqsystem/set_country_code?country=CN

While changing country code you will get error...... But don't worry...... On my Mi Ax3000 mesh Ra82 its working.

Note: For Using Mi Home App you need to change the Location to the Same as your Application region.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment