Browse Source

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 <[email protected]>
INAGAKI Hiroshi 3 years ago
parent
commit
48bb71ff28
1 changed files with 2 additions and 1 deletions
  1. 2 1
      target/linux/ath79/generic/base-files/etc/board.d/02_network

+ 2 - 1
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)