On TL-WR720N-v3, this patch makes eth0 and eth1 the interface name for
lan and wan network respectively.

Originally the lan and wan use eth1 and eth0 as their interface names.
That may cause some inconvenience as failsafe for ar71xx uses eth0 as
the default ifname so that when failsafe is triggered users usually need
to first plug the cable out from the LAN port, then plug it into WAN
port to get access to the system.

Signed-off-by: Yousong Zhou <yszhou4t...@gmail.com>
---

Index: target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr720n-v3.c
===================================================================
--- target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr720n-v3.c       
(revision 36936)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr720n-v3.c       
(working copy)
@@ -98,8 +98,8 @@
        ath79_init_mac(ath79_eth1_data.mac_addr, mac, 2);
 
        ath79_register_mdio(0, 0x0);
+       ath79_register_eth(1);
        ath79_register_eth(0);
-       ath79_register_eth(1);
 
        ath79_register_wmac(ee, mac);
 }
Index: target/linux/ar71xx/base-files/etc/uci-defaults/02_network
===================================================================
--- target/linux/ar71xx/base-files/etc/uci-defaults/02_network  (revision 36936)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network  (working copy)
@@ -221,7 +221,6 @@
 pb42 |\
 pb44 |\
 routerstation|\
-tl-wr720n-v3|\
 wpe72)
        ucidef_set_interfaces_lan_wan "eth1" "eth0"
        ;;
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to