-
-
Save goodwin/a1601d5700b673e667edc2a1fa1f3731 to your computer and use it in GitHub Desktop.
Change country to unlock channels, increase TX-power. (Use at your own risk)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Login into router using SSH and execute listed commands (AT OWN RISK!). | |
# To apply the settings on boot, copy + paste the same settings in init-start. | |
# Backup current settings | |
nvram dump > dump.txt | |
# Set country + TX-power | |
nvram set asuscfe0:ccode=US | |
nvram set asuscfe1:ccode=US | |
nvram set asuscfe0:regrev=0 | |
nvram set asuscfe1:regrev=0 | |
nvram set asuscfecommit=1 | |
nvram set 0:ccode=US | |
nvram set 1:ccode=US | |
nvram set 0:regrev=0 | |
nvram set 1:regrev=0 | |
nvram set wl0_country_code=US | |
nvram set wl1_country_code=US | |
nvram set wl0_country_rev=0 | |
nvram set wl1_country_rev=0 | |
nvram set wl0_reg_mode=off | |
nvram set wl1_reg_mode=off | |
nvram set regulation_domain=US | |
nvram set regulation_domain_5G=US | |
nvram set pci/1/1/ccode=US | |
nvram set pci/2/1/ccode=US | |
nvram set wl0_country=US | |
nvram set wl1_country=US | |
nvram set 0:maxp2ga0=114 | |
nvram set 0:maxp2ga1=114 | |
nvram set 0:maxp2ga2=114 | |
nvram set 1:maxp2ga0=0x72 | |
nvram set 1:maxp2ga1=0x72 | |
nvram set 1:maxp2ga2=0x72 | |
nvram set wl_txpower=500 | |
nvram set wl0_txpower=500 | |
nvram set wl1_txpower=500 | |
nvram commit | |
# If changing 5G in the interface doesn't work: | |
# https://www.snbforums.com/threads/changing-channel-width-from-terminal.12432/ | |
nvram set "wl1_chanspec=149/80" | |
nvram commit | |
service restart_wireless |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Login into router using SSH and execute listed commands (AT OWN RISK!). | |
# To apply the settings on boot, copy + paste the same settings in init-start. | |
# Backup current settings | |
nvram dump > dump.txt | |
# Set country + TX-power | |
# ref: https://www.snbforums.com/threads/384-18_alpha-builds-testing-all-variants.63954/page-23#post-592739 | |
nvram set 0:ccode=ALL | |
nvram set 0:regrev=0 | |
nvram set 1:ccode=ALL | |
nvram set 1:regrev=0 | |
nvram set wl0_country_code=US | |
nvram set wl0_country_rev=768 | |
nvram set wl0_reg_mode=d | |
nvram set wl1_chlist="36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 149 153 157 161 165" | |
nvram set wl1_country_code=US | |
nvram set wl1_country_rev=768 | |
nvram set wl1_reg_mode=h | |
nvram set 0:maxp2ga0=114 | |
nvram set 0:maxp2ga1=114 | |
nvram set 1:maxp5gb0a0=110 | |
nvram set 1:maxp5gb0a1=110 | |
nvram set 1:maxp5gb0a2=110 | |
nvram set 1:maxp5gb0a3=110 | |
nvram set 1:maxp5gb1a0=110 | |
nvram set 1:maxp5gb1a1=110 | |
nvram set 1:maxp5gb1a2=110 | |
nvram set 1:maxp5gb1a3=110 | |
nvram set 1:maxp5gb2a0=110 | |
nvram set 1:maxp5gb2a1=110 | |
nvram set 1:maxp5gb2a2=110 | |
nvram set 1:maxp5gb2a3=110 | |
nvram set 1:maxp5gb3a0=110 | |
nvram set 1:maxp5gb3a1=110 | |
nvram set 1:maxp5gb3a2=110 | |
nvram set 1:maxp5gb3a3=110 | |
nvram set 1:maxp5gb4a0=110 | |
nvram set 1:maxp5gb4a1=110 | |
nvram set 1:maxp5gb4a2=110 | |
nvram set 1:maxp5gb4a3=110 | |
nvram set territory_code=US/01 | |
nvram set wl0_txpower=500 | |
nvram set wl1_txpower=500 | |
nvram set wl_txpower=500 | |
nvram commit | |
# If changing 5G in the interface doesn't work: | |
# https://www.snbforums.com/threads/changing-channel-width-from-terminal.12432/ | |
nvram set "wl1_chanspec=149/80" | |
nvram commit | |
service restart_wireless |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Follow steps @ https://github.com/RMerl/asuswrt-merlin.ng/wiki/User-scripts | |
// paste the same nvram settings here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment