aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt76x8
diff options
context:
space:
mode:
authorLiu Yu <f78fk@live.com>2021-06-08 09:50:02 +0800
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-06-09 22:18:37 +0200
commitae9c5cd37bf5c08452f314b54afa963a00bdde30 (patch)
treedf0ac124eca8ea9ea7c97f799566a773be288eb6 /target/linux/ramips/mt76x8
parent7f946a880a61816e338e99b79ece6fb206fc6f9c (diff)
downloadupstream-ae9c5cd37bf5c08452f314b54afa963a00bdde30.tar.gz
upstream-ae9c5cd37bf5c08452f314b54afa963a00bdde30.tar.bz2
upstream-ae9c5cd37bf5c08452f314b54afa963a00bdde30.zip
ramips: fix Ethernet random MAC address for HILINK HLK-7628N
Set the ethernet address from flash. MAC addresses as verified by OEM firmware: use interface source 2g wlan0 factory 0x04 (label) LAN eth0.1 factory 0x28 (label+1) WAN eth0.2 factory 0x2e (label+2) Fixes: 671c9d16e382 ("ramips: add support for HILINK HLK-7628N") Signed-off-by: Liu Yu <f78fk@live.com> [drop old MAC address setup from 02_network, cut out state_default changes, face-lift commit message, add Fixes:] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/mt76x8')
-rw-r--r--target/linux/ramips/mt76x8/base-files/etc/board.d/02_network5
1 files changed, 1 insertions, 4 deletions
diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
index d61a60591c..703936f217 100644
--- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
@@ -168,6 +168,7 @@ ramips_setup_macs()
lan_mac=$wan_mac
;;
cudy,wr1000|\
+ hilink,hlk-7628n|\
hilink,hlk-7688a|\
wavlink,wl-wn577a2|\
wavlink,wl-wn578a2)
@@ -187,10 +188,6 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary factory 0x22)
label_mac=$wan_mac
;;
- hilink,hlk-7628n)
- lan_mac=$(macaddr_setbit_la "$(cat /sys/class/net/eth0/address)")
- wan_mac=$(macaddr_add "$lan_mac" 1)
- ;;
hiwifi,hc5661a|\
hiwifi,hc5761a|\
hiwifi,hc5861b)