ramips: fix MAC address setup for Xiaomi MiWiFi Nano
authorSungbo Eo <mans0n@gorani.run>
Sun, 22 Dec 2019 15:36:11 +0000 (00:36 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 22 Dec 2019 16:53:13 +0000 (17:53 +0100)
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 <mans0n@gorani.run>
target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts
target/linux/ramips/mt76x8/base-files/etc/board.d/02_network

index 49c2a368d9c98f273b3057954d9622c576c42732..bd3fc967f1fd4f1f0d384bb1bfca9b2076a1e259 100644 (file)
@@ -14,6 +14,7 @@
                led-failsafe = &led_status_red;
                led-running = &led_status_blue;
                led-upgrade = &led_status_amber;
+               label-mac-device = &ethernet;
        };
 
        chosen {
index aeaf2969843b2a1d7c583482b47560b31aae5b4e..df795e5a3663e03c6abfee024861860a2b2c7227 100755 (executable)
@@ -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|\