From: INAGAKI Hiroshi Date: Wed, 19 Oct 2022 15:00:27 +0000 (+0900) Subject: ath79: improve MAC address configuration of ELECOM devices X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=48bb71ff280e2d3cd97c7a48b0d17c209ae6a36c;p=openwrt%2Fstaging%2Fjow.git ath79: improve MAC address configuration of ELECOM devices 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 --- 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 a2ae5cb8de..1d8beaaa25 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 @@ -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)