From: Sungbo Eo Date: Sun, 22 Dec 2019 15:36:11 +0000 (+0900) Subject: ramips: fix MAC address setup for Xiaomi MiWiFi Nano X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ea5cf7c0dd98db62de1b368096f903177636b6e7;p=openwrt%2Fstaging%2Frmilecki.git ramips: fix MAC address setup for Xiaomi MiWiFi Nano MAC addresses are stored in factory partition at: 0x0004: WiFi 2.4GHz (label_mac +1) 0x0028: LAN, WAN (label_mac) Signed-off-by: Sungbo Eo --- diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts index 49c2a368d9c..bd3fc967f1f 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts @@ -14,6 +14,7 @@ led-failsafe = &led_status_red; led-running = &led_status_blue; led-upgrade = &led_status_amber; + label-mac-device = ðernet; }; chosen { 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 aeaf2969843..df795e5a366 100755 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network @@ -171,8 +171,7 @@ ramips_setup_macs() rakwireless,rak633|\ unielec,u7628-01-16m|\ wavlink,wl-wn575a3|\ - wiznet,wizfi630s|\ - xiaomi,miwifi-nano) + wiznet,wizfi630s) wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x28)" 1) ;; skylab,skw92a|\