aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/generic
diff options
context:
space:
mode:
authorINAGAKI Hiroshi <musashino.open@gmail.com>2022-10-20 00:00:27 +0900
committerHauke Mehrtens <hauke@hauke-m.de>2022-10-19 22:58:12 +0200
commit48bb71ff280e2d3cd97c7a48b0d17c209ae6a36c (patch)
tree4e7168dc62e8e0743753db92438a80dd5c6a1760 /target/linux/ath79/generic
parent961d4230f4a5ebf79ff350d4ee4593a21f8bb4ec (diff)
downloadupstream-48bb71ff280e2d3cd97c7a48b0d17c209ae6a36c.tar.gz
upstream-48bb71ff280e2d3cd97c7a48b0d17c209ae6a36c.tar.bz2
upstream-48bb71ff280e2d3cd97c7a48b0d17c209ae6a36c.zip
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 <musashino.open@gmail.com>
Diffstat (limited to 'target/linux/ath79/generic')
-rw-r--r--target/linux/ath79/generic/base-files/etc/board.d/02_network3
1 files changed, 2 insertions, 1 deletions
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)