Patchwork [OpenWrt-Devel,ar71xx] TL-WR720N-v3: Make failsafe work on LAN port

Submitter Yousong Zhou
Date 2013-06-15 10:38:39
Message ID <>
Download mbox | patch
Permalink /patch/3765/
State Not Applicable
Delegated to: Gabor Juhos
Headers show


Yousong Zhou - 2013-06-15 10:38:39
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 <>


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(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 |\
 	ucidef_set_interfaces_lan_wan "eth1" "eth0"