diff options
author | INAGAKI Hiroshi <musashino.open@gmail.com> | 2021-03-25 00:15:57 +0900 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-04-02 16:04:47 +0200 |
commit | 6f427580007f9cd25b7821644beb6f088d144ab2 (patch) | |
tree | b02519bf74c5d1ce56a1523c338a0ee59b7fde99 | |
parent | b8eb602934f5e02d8a15678a82dd516b4b7765ff (diff) | |
download | upstream-6f427580007f9cd25b7821644beb6f088d144ab2.tar.gz upstream-6f427580007f9cd25b7821644beb6f088d144ab2.tar.bz2 upstream-6f427580007f9cd25b7821644beb6f088d144ab2.zip |
ath79: fix label_mac for NEC Aterm WG1200CR
On NEC Aterm WG1200CR, the MAC address for WAN is printed in the label
on the case, not LAN.
This patch fixes this issue.
Fixes: 50fdc0374b ("ath79: provide label MAC address")
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
(cherry picked from commit e2331fb5491e52e3e21ab18b58d064b344e093e5)
-rwxr-xr-x | target/linux/ath79/generic/base-files/etc/board.d/02_network | 8 |
1 files changed, 6 insertions, 2 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 084e8536dd..1e522b91c6 100755 --- a/target/linux/ath79/generic/base-files/etc/board.d/02_network +++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network @@ -526,8 +526,7 @@ ath79_setup_macs() ;; dlink,dir-842-c1|\ dlink,dir-842-c2|\ - dlink,dir-842-c3|\ - nec,wg1200cr) + dlink,dir-842-c3) lan_mac=$(mtd_get_mac_ascii devdata "lanmac") wan_mac=$(mtd_get_mac_ascii devdata "wanmac") label_mac=$lan_mac @@ -588,6 +587,11 @@ ath79_setup_macs() base_mac=$(mtd_get_mac_binary u-boot 0x1fc00) wan_mac=$(macaddr_add "$base_mac" 1) ;; + nec,wg1200cr) + lan_mac=$(mtd_get_mac_ascii devdata "lanmac") + wan_mac=$(mtd_get_mac_ascii devdata "wanmac") + label_mac=$wan_mac + ;; nec,wg800hp) lan_mac=$(mtd_get_mac_text board_data 0x280) wan_mac=$(mtd_get_mac_text board_data 0x480) |