ramips: mt7621: add support for ZyXEL WSM20
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index b6337f397b842d31d7c1f623b55fd9bf20889dad..f042830e025c309d6a39ae478fca3e9474bff375 100644 (file)
@@ -181,4 +181,9 @@ case "$board" in
                [ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr 1 > /sys${DEVPATH}/macaddress
                [ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 2 > /sys${DEVPATH}/macaddress
                ;;
+       zyxel,wsm20)
+               hw_mac_addr="$(mtd_get_mac_binary Factory 0x1fdfa)"
+               [ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr 1 > /sys${DEVPATH}/macaddress
+               [ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 2 > /sys${DEVPATH}/macaddress
+               ;;
 esac