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:48:28 +0200 |
commit | 415175246eec0c59351e575ce6f3769b70772b09 (patch) | |
tree | 8d3381ff21bfd6184859efdcb5053af828bfda2e /target/linux/ar71xx/base-files | |
parent | 082e6215b7cc5c823d6b0254de45420209ad68b1 (diff) | |
download | upstream-415175246eec0c59351e575ce6f3769b70772b09.tar.gz upstream-415175246eec0c59351e575ce6f3769b70772b09.tar.bz2 upstream-415175246eec0c59351e575ce6f3769b70772b09.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')
-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 01c947d531..cb707f6169 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -481,7 +481,8 @@ ar71xx_setup_macs() wan_mac=$(mtd_get_mac_binary caldata 6) ;; 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") |