mirror of https://github.com/hak5/openwrt.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 <mans0n@gorani.run>master
parent
74e9f95c79
commit
ea5cf7c0dd
|
@ -14,6 +14,7 @@
|
||||||
led-failsafe = &led_status_red;
|
led-failsafe = &led_status_red;
|
||||||
led-running = &led_status_blue;
|
led-running = &led_status_blue;
|
||||||
led-upgrade = &led_status_amber;
|
led-upgrade = &led_status_amber;
|
||||||
|
label-mac-device = ðernet;
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
|
|
|
@ -171,8 +171,7 @@ ramips_setup_macs()
|
||||||
rakwireless,rak633|\
|
rakwireless,rak633|\
|
||||||
unielec,u7628-01-16m|\
|
unielec,u7628-01-16m|\
|
||||||
wavlink,wl-wn575a3|\
|
wavlink,wl-wn575a3|\
|
||||||
wiznet,wizfi630s|\
|
wiznet,wizfi630s)
|
||||||
xiaomi,miwifi-nano)
|
|
||||||
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x28)" 1)
|
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x28)" 1)
|
||||||
;;
|
;;
|
||||||
skylab,skw92a|\
|
skylab,skw92a|\
|
||||||
|
|
Loading…
Reference in New Issue