Skip to content

Instantly share code, notes, and snippets.

@francoism90
Last active November 30, 2024 09:18
Show Gist options
  • Save francoism90/3dede7973354d067c41bff5e54203fe9 to your computer and use it in GitHub Desktop.
Save francoism90/3dede7973354d067c41bff5e54203fe9 to your computer and use it in GitHub Desktop.
Change country to unlock channels, increase TX-power. (Use at your own risk)

Disclaimer

Following instructions are provided without any warranty, and may even get you in trouble legally. The instructions are provided for testing, learning, preventing e-waste, and should be use with care. We (including contributers + commentators) are not responsible for any damage to your device(s) or any legal issues.

Getting Started

Instructions have been moved to https://github.com/francoism90/asus-router. :)

@pasko-zh
Copy link

pasko-zh commented Jun 20, 2024

Followed steps on a GT-AX6000 from Germany. Tx power did increase and better signal (signal strength from same spot -58dbm to -44dbm). New channels (149 and up) appeared as well. GUI changes seems to not cause issues and I can swap to other channels in GUI. However, whenever I try to connect to channel 149 from an Intel AX211 card, Windows shows I am using wifi 4 instead of wifi 6. Lower channels (36, 44, 48 etc) are fine. Is this an Intel issue like the previous posts indicated? Thanks for the help and good luck everyone.

Most likely yes. And or a combination with the OS. You can try with another client and see if it works as expected.

You can check on our router how your client is connected, this gives you all the details.
Here for eth7 on my router:

wl -i eth7 assoclist
=> MAC_ADR

 wl -i eth7 sta_info MAC_ADR

If you want to dig deeper: Capture 802.11 beacon frames with wireshark. Then you will see what your router is advertising, and how the handshake with the client goes on....

@francoism90
Copy link
Author

I have updated the instructions to use events, meaning it should work when changing Wireless settings in the GUI.

Could you please test? I have also added to multiple places, as it seems to be the only way to make sure settings are set on boot and such.

@Reeplosin
Copy link

however it would be more practical to have an archive containing all the scripts that work for a specific model with their respective instructions for use. not all scripts work for everything in most cases if for example you used a script for an AX6000 on an AC86u the gui becomes in Chinese language and that's it

@pewpewpew47
Copy link

Followed steps on a GT-AX6000 from Germany. Tx power did increase and better signal (signal strength from same spot -58dbm to -44dbm). New channels (149 and up) appeared as well. GUI changes seems to not cause issues and I can swap to other channels in GUI. However, whenever I try to connect to channel 149 from an Intel AX211 card, Windows shows I am using wifi 4 instead of wifi 6. Lower channels (36, 44, 48 etc) are fine. Is this an Intel issue like the previous posts indicated? Thanks for the help and good luck everyone.

Most likely yes. And or a combination with the OS. You can try with another client and see if it works as expected.

You can check on our router how your client is connected, this gives you all the details. Here for eth7 on my router:

wl -i eth7 assoclist
=> MAC_ADR

 wl -i eth7 sta_info MAC_ADR

If you want to dig deeper: Capture 802.11 beacon frames with wireshark. Then you will see what your router is advertising, and how the handshake with the client goes on....

Thanks Pasko! After some digging with your command line, I found that 149-169 does not work when 160mHz bandwidth is selected. Currently I just run my router on auto channel and auto bandwidth (been on channel 100/160 since last reboot). I live close to airport so DFS may also have something to do with the issue.

@pewpewpew47
Copy link

I have updated the instructions to use events, meaning it should work when changing Wireless settings in the GUI.

Could you please test? I have also added to multiple places, as it seems to be the only way to make sure settings are set on boot and such.

Redid all the nvram changes after your update. Can confirm GUI changes persist after restart on GT-AX6000. Thanks mate!

@francoism90
Copy link
Author

@pewpewpew47 Thanks for testing! Yeah, it seems to be persistent now. :)

@argh0815
Copy link

Hi Does anyone know how to disable DFS using nvram without changing country/local/transmit power? I can do it using wl command but it's not persistent.

@omrij, can you share the wl command you're using to disable DFS? Thanks!

@omrij
Copy link

omrij commented Jul 10, 2024

Hi Does anyone know how to disable DFS using nvram without changing country/local/transmit power? I can do it using wl command but it's not persistent.

@omrij, can you share the wl command you're using to disable DFS? Thanks!

Something like this (adjust channel and other things you need)

settings for 5G

wl -i eth7 down
wl -i eth7 regulatory 1
wl -i eth7 spect 0
wl -i eth7 chanspec 100/160
wl -i eth7 up

@argh0815
Copy link

Great, tried and working, thanks again!

@Hellohi3654
Copy link

confirmed working on ax86u pro

@Squall-Leonhart
Copy link

enabling the missing channels doesn't seem to work on my ac68u, did on my ac88u both on merlin 386.14,

the country codes reset on reboot,

@dionvl
Copy link

dionvl commented Aug 7, 2024

settings for 5G

wl -i eth7 down wl -i eth7 regulatory 1 wl -i eth7 spect 0 wl -i eth7 chanspec 100/160 wl -i eth7 up

Thanks @omrij ! Had to change eth7 to eth6 for the AX82U. DFS is borked on this model so I'm glad my WiFi will now stay up.

@francoism90
Copy link
Author

@Squall-Leonhart Please dump the unmodified first nvram dump, and compare the values with the provided one. You may need to have different values, my model isn't that new, so I cannot test unfortunately.

@Squall-Leonhart
Copy link

Squall-Leonhart commented Aug 7, 2024

found the reason, unlike ac88u which can retain these values over reboot, the ac68u forcibly copies the cfe values back to nvram, so you have to add them to init-start.

@francoism90
Copy link
Author

@Squall-Leonhart Yes, see updated instructions, because you basically have to add them all of the place lol.

@Euri007
Copy link

Euri007 commented Aug 23, 2024

Hy,
Is there a solution to change country code in asus tuf-ax5400?
Thanks

@Linden1
Copy link

Linden1 commented Aug 23, 2024

Hy, Is there a solution to change country code in asus tuf-ax5400? Thanks

Unfortunately not. Only works with Merlin firmware, for which there are no releases for non-broadcom routers.

@Euri007
Copy link

Euri007 commented Aug 23, 2024

Hy, Is there a solution to change country code in asus tuf-ax5400? Thanks

Unfortunately not. Only works with Merlin firmware, for which there are no releases for non-broadcom routers.

Thans fiend

@argh0815
Copy link

You can install GNUton's firmware which is an official fork of Merlin and supports TUF-AX5400 https://github.com/gnuton/asuswrt-merlin.ng

@Linden1
Copy link

Linden1 commented Aug 23, 2024

Well spotted @argh0815

@heythem500
Copy link

does it have to be for Merlin routers?
I have RT-AX58U V2 without merlin!!

@Hellohi3654
Copy link

does it have to be for Merlin routers? I have RT-AX58U V2 without merlin!!

You can also install GNUton's fork
https://github.com/gnuton/asuswrt-merlin.ng

@omrij
Copy link

omrij commented Aug 25, 2024

does it have to be for Merlin routers? I have RT-AX58U V2 without merlin!!

No
Nvram method works on stock asuswrt
wl works too, but isn't persistent after wifi restarts

@francoism90
Copy link
Author

@heythem500 I only tested this on Merlin, I indeed thought as @omrij that only scripts are supported on Merlin.

@Euri007
Copy link

Euri007 commented Aug 25, 2024

I'have Just installed Merlin gnuton fork. Now can i use script and It works?

@super0r
Copy link

super0r commented Aug 26, 2024

Wondering if you can create youtube video on this? it be helpful!

thnx

@super0r
Copy link

super0r commented Aug 26, 2024

Followed steps on a GT-AX6000 from Germany. Tx power did increase and better signal (signal strength from same spot -58dbm to -44dbm). New channels (149 and up) appeared as well. GUI changes seems to not cause issues and I can swap to other channels in GUI. However, whenever I try to connect to channel 149 from an Intel AX211 card, Windows shows I am using wifi 4 instead of wifi 6. Lower channels (36, 44, 48 etc) are fine. Is this an Intel issue like the previous posts indicated? Thanks for the help and good luck everyone.

i have the same router as you Asus gt-ax6000 wondering what version is your hw ? thanks

@Hellohi3654
Copy link

Hellohi3654 commented Aug 26, 2024

Followed steps on a GT-AX6000 from Germany. Tx power did increase and better signal (signal strength from same spot -58dbm to -44dbm). New channels (149 and up) appeared as well. GUI changes seems to not cause issues and I can swap to other channels in GUI. However, whenever I try to connect to channel 149 from an Intel AX211 card, Windows shows I am using wifi 4 instead of wifi 6. Lower channels (36, 44, 48 etc) are fine. Is this an Intel issue like the previous posts indicated? Thanks for the help and good luck everyone.

i have the same router as you Asus gt-ax6000 wondering what version is your hw ? thanks

I'm using the ax-86u pro and have this same issue using 149 and above causes specifically Intel WiFi cards to use wifi 4 when connected to the 5ghz network
Mediatek WiFi cards work fine so not sure if this is a bug or intentional design from Intel. Would be quite stupid if it's intentional

@Euri007
Copy link

Euri007 commented Aug 26, 2024

Yesterday try to make this change:
nvram set location_code=#a
Now I have to all settings ALL

Tx power for 2.4 is 28,5 db
Tx power for 5 is 27,5 db

I try to revert change coming back to
nvram set location_code=E0 but not work

28,5 db and 27,5 db seem to high for me and I'want return to old eu settings.

How to revert?
Thanks

@Linden1
Copy link

Linden1 commented Aug 26, 2024

Yesterday try to make this change: nvram set location_code=#a Now I have to all settings ALL

Tx power for 2.4 is 28,5 db Tx power for 5 is 27,5 db

I try to revert change coming back to nvram set location_code=E0 but not work

28,5 db and 27,5 db seem to high for me and I'want return to old eu settings.

How to revert? Thanks

If you go into the router's gui you can, in Wireless Professional settings for 2.4GHz, change the slider at the bottom of the page to Power Save. After reboot the radio output power should be back close to default settings - in my case 17.0 17.0 17.0. This leaves you free to change the radio power without having to edit the wl script.

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