ath79: fix label MAC address for D-Link DIR-825B1
authorSebastian Schaper <openwrt@sebastianschaper.net>
Fri, 27 May 2022 15:22:52 +0000 (17:22 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sat, 28 May 2022 22:01:52 +0000 (00:01 +0200)
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@sebastianschaper.net>
(cherry picked from commit 4bed263af7a13cb4b9401f7ae04f788cfcc234f7)

target/linux/ath79/generic/base-files/etc/board.d/02_network

index 230048069518d6d46a3e19162499421834c39687..258b0814424da39e9083b529cb154c5340c5bc0b 100644 (file)
@@ -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)