Skip to content

Instantly share code, notes, and snippets.

@francoism90
Created August 20, 2023 11:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save francoism90/e3da8d155f9b0920da10d35b56b06f3f to your computer and use it in GitHub Desktop.
Save francoism90/e3da8d155f9b0920da10d35b56b06f3f to your computer and use it in GitHub Desktop.
Tweak ASUS RT-AC87U
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment