ath79: improve MAC address configuration of ELECOM devices
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Wed, 19 Oct 2022 15:00:27 +0000 (00:00 +0900)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 19 Oct 2022 20:58:12 +0000 (22:58 +0200)
Get MAC address of WAN from HW.WAN.MAC.Address in hwconfig partition
instead of calculated one from wlan's address.
And added label_mac.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
target/linux/ath79/generic/base-files/etc/board.d/02_network

index a2ae5cb8de41ac90bb422d1091d8f8ae15f2172d..1d8beaaa2552ad024ed5c92dde838d4d246ed62b 100644 (file)
@@ -634,7 +634,8 @@ ath79_setup_macs()
                ;;
        elecom,wrc-1750ghbk2-i|\
        elecom,wrc-300ghbk2-i)
-               wan_mac=$(macaddr_add "$(mtd_get_mac_binary art 0x1002)" -2)
+               wan_mac=$(mtd_get_mac_ascii hwconfig "HW.WAN.MAC.Address")
+               label_mac=$wan_mac
                ;;
        engenius,ecb1200|\
        engenius,ecb1750)