[openwrt/openwrt] ath79: fix MAC address assignment for TP-Link ar7241 devices
LEDE Commits
lede-commits at lists.infradead.org
Sat Nov 12 09:30:16 PST 2022
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/5a1af6ed621d4547d8bf486d0d3e4de5443b9b58
commit 5a1af6ed621d4547d8bf486d0d3e4de5443b9b58
Author: Will Moss <willormos at gmail.com>
AuthorDate: Wed Aug 3 11:37:47 2022 +0000
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 at gmail.com>
---
target/linux/ath79/dts/ar7241_tplink.dtsi | 7 +++----
1 file 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 @@
};
};
-ð0 {
+ð0 { /* 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>;
};
-ð1 {
+ð1 { /* LAN interface, initialized first as eth0 */
nvmem-cells = <&macaddr_uboot_1fc00>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&uboot {
More information about the lede-commits
mailing list