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)
@NullCode1337
Copy link

Instead of using set_country_code use this link:

http://192.168.31.1/cgi-bin/luci/;stok=xxxxxxxxxxxxxxxxxxxxxxxxx/api/xqsystem/set_location?location=CN

You are not limited to country list.

thanks a bunch, worked on my Mi 4A R4AC International to set China region and unlock channels

@andfera
Copy link

andfera commented Feb 19, 2026

I have a Global AX3000 (RA82), but the other nodes (also RA82 I have more 3 routers/nodes) can't establish a connection (MESH) unless I set the gateway to the CN region!
Any idea?

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