diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2017-09-11 19:41:41 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2017-09-11 19:47:19 +0200 |
commit | 53839da46e6fb21e68b3878b4a2187c7d32d688e (patch) | |
tree | 89234219e7c9227ffee3cdfce7aee8b3f1f9fd3d /target/linux/ar71xx/base-files/etc/board.d | |
parent | 79440ea7563d626d3823cbd3dadbe2f73214ce32 (diff) | |
download | upstream-53839da46e6fb21e68b3878b4a2187c7d32d688e.tar.gz upstream-53839da46e6fb21e68b3878b4a2187c7d32d688e.tar.bz2 upstream-53839da46e6fb21e68b3878b4a2187c7d32d688e.zip |
ar71xx: fix MAC addresses on TP-Link TL-WR1043ND v4
The addresses were read from the 'config' partition, which would not always
contain the addresses at the same offsets, depending on the stock firmware
version used before flashing LEDE. Change this to get the addresses from
the 'product-info' partition, which is read-only.
Reported-and-tested-by: Andreas Ziegler <ml@andreas-ziegler.de>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/board.d')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/board.d/02_network | 3 |
1 files changed, 2 insertions, 1 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 9a9288780c..39e819fd3d 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -531,7 +531,8 @@ ar71xx_setup_macs() lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)")) ;; tl-wr1043nd-v4) - wan_mac=$(mtd_get_mac_binary config 0x1017c) + lan_mac=$(mtd_get_mac_binary product-info 8) + wan_mac=$(macaddr_add "$lan_mac" 1) ;; esr900) wan_mac=$(mtd_get_mac_ascii u-boot-env "wanaddr") |