From 59227ebc9711d092e94b8af9df963aff51a66440 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Mon, 22 Feb 2021 23:44:18 +0800 Subject: [PATCH] ramips: correct/add Phicomm K2x WAN/label MAC address Phicomm K2G: add missing label_mac Phicomm PSG1218A & PSG1218B: The previous wan mac was set as factory@0x28 +1 (originally based on the default case for the ramips target), but the correct wan mac is factory@0x28 -1, being equal to factory@0x2e. Signed-off-by: Shiji Yang [minor commit title/message adjustments] Signed-off-by: Adrian Schmutzler --- .../ramips/mt7620/base-files/etc/board.d/02_network | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network index a56cc959b7..0138537b6e 100755 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network @@ -271,8 +271,6 @@ ramips_setup_macs() ;; alfa-network,ac1200rm|\ dlink,dir-810l|\ - phicomm,psg1218a|\ - phicomm,psg1218b|\ trendnet,tew-810dr) wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x28)" 1) ;; @@ -335,14 +333,16 @@ ramips_setup_macs() iptime,a104ns) wan_mac=$(macaddr_add "$(mtd_get_mac_binary u-boot 0x1fc20)" 2) ;; - lb-link,bl-w1200) + lb-link,bl-w1200|\ + phicomm,k2g|\ + phicomm,psg1218a|\ + phicomm,psg1218b) wan_mac=$(mtd_get_mac_binary factory 0x2e) label_mac=$wan_mac ;; lenovo,newifi-y1|\ lenovo,newifi-y1s|\ - ohyeah,oy-0001|\ - phicomm,k2g) + ohyeah,oy-0001) wan_mac=$(mtd_get_mac_binary factory 0x2e) ;; linksys,e1700)