[openwrt/openwrt] ath79: fix label MAC address for D-Link DIR-825B1

LEDE Commits lede-commits at lists.infradead.org
Sat May 28 15:02:04 PDT 2022


blocktrron pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/b42511c00783febe495de587a8ff3fff24b6ea48

commit b42511c00783febe495de587a8ff3fff24b6ea48
Author: Sebastian Schaper <openwrt at sebastianschaper.net>
AuthorDate: Fri May 27 17:22:52 2022 +0200

    ath79: fix label MAC address for D-Link DIR-825B1
    
    The label MAC address for DIR-825 Rev. B1 is the WAN address located
    at 0xffb4 in `caldata`, which equals LAN MAC at 0xffa0 incremented by 1.
    
    Signed-off-by: Sebastian Schaper <openwrt at sebastianschaper.net>
    (cherry picked from commit 4bed263af7a13cb4b9401f7ae04f788cfcc234f7)
---
 target/linux/ath79/generic/base-files/etc/board.d/02_network | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network
index 2300480695..258b081442 100644
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network
@@ -596,6 +596,7 @@ ath79_setup_macs()
 	dlink,dir-825-b1)
 		lan_mac=$(mtd_get_mac_text "caldata" 0xffa0)
 		wan_mac=$(mtd_get_mac_text "caldata" 0xffb4)
+		label_mac=$wan_mac
 		;;
 	dlink,dir-505)
 		lan_mac=$(mtd_get_mac_text "mac" 0x4)




More information about the lede-commits mailing list