diff options
author | Sungbo Eo <mans0n@gorani.run> | 2019-12-15 18:10:18 +0900 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-12-21 00:27:39 +0100 |
commit | 9b02d32e34df2bb8821ec6f08f525bee22d0d1ba (patch) | |
tree | d85f9f083aad5f81b102eab7bfee60a77acbee5a /target/linux/ar71xx/base-files | |
parent | a4260eaab7744c8e3f1f7a62a61aab5e3b562342 (diff) | |
download | upstream-9b02d32e34df2bb8821ec6f08f525bee22d0d1ba.tar.gz upstream-9b02d32e34df2bb8821ec6f08f525bee22d0d1ba.tar.bz2 upstream-9b02d32e34df2bb8821ec6f08f525bee22d0d1ba.zip |
ar71xx: fix MAC address setup for TL-WDR4300 board
The current ethernet MAC address setup of TL-WDR4300 board is different
from the setup of stock firmware:
OpenWrt: lan = label_mac -2, wan = label_mac -2
stock: lan = label_mac, wan = label_mac +1
This patch applies to all devices using TL-WDR4300 board:
TL-WDR3600 v1
TL-WDR4300 v1
TL-WDR4300 v1 (IL)
TL-WDR4310 v1
Mercury MW4530R v1
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/board.d/02_network | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index 5307dd23f2..6276ec166c 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -633,6 +633,10 @@ ar71xx_setup_macs() fritz300e) lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)")) ;; + tl-wdr4300) + base_mac=$(mtd_get_mac_binary u-boot 0x1fc00) + wan_mac=$(macaddr_add "$base_mac" 1) + ;; tl-wr1043n-v5|\ tl-wr1043nd-v4) lan_mac=$(mtd_get_mac_binary product-info 0x8) |