aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorWill Moss <willormos@gmail.com>2022-08-03 11:37:47 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2022-11-12 21:55:11 +0100
commitd25e1a3bde68dadaa480e3c9ee7cc767e03a4170 (patch)
treedc868cd589a0c1920d819db8f8987c1ed94c051f /target
parent7fa635131099b247db2199d046cc11c0dc2d16d7 (diff)
downloadupstream-d25e1a3bde68dadaa480e3c9ee7cc767e03a4170.tar.gz
upstream-d25e1a3bde68dadaa480e3c9ee7cc767e03a4170.tar.bz2
upstream-d25e1a3bde68dadaa480e3c9ee7cc767e03a4170.zip
ath79: fix MAC address assignment for TP-Link ar7241 devices
On TP-Link ar7241 devices LAN and WAN interfaces are swapped. Keeping that in mind fix MAC address assignment as used in vendor firmware: LAN MAC - main MAC stored in u-boot and printed on label WAN MAC - LAN MAC + 1 Signed-off-by: Will Moss <willormos@gmail.com> (cherry picked from commit 5a1af6ed621d4547d8bf486d0d3e4de5443b9b58)
Diffstat (limited to 'target')
-rw-r--r--target/linux/ath79/dts/ar7241_tplink.dtsi7
1 files changed, 3 insertions, 4 deletions
diff --git a/target/linux/ath79/dts/ar7241_tplink.dtsi b/target/linux/ath79/dts/ar7241_tplink.dtsi
index 84a9a4f63d..0861cc6232 100644
--- a/target/linux/ath79/dts/ar7241_tplink.dtsi
+++ b/target/linux/ath79/dts/ar7241_tplink.dtsi
@@ -94,18 +94,17 @@
};
};
-&eth0 {
+&eth0 { /* WAN interface, initialized last as eth1 */
status = "okay";
nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
+ mac-address-increment = <1>;
};
-&eth1 {
+&eth1 { /* LAN interface, initialized first as eth0 */
nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&uboot {