ath79: add support for ZyXEL NWA1123-AC
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 15bdf81a053c89688c01fc29d19ee2a2fd449005..57458cdef0768c90b3b153f06db09f7906958f27 100644 (file)
@@ -68,6 +68,10 @@ case "$board" in
                [ "$PHYNBR" -eq 1 ] && \
                        mtd_get_mac_ascii u-boot-env ethaddr > /sys${DEVPATH}/macaddress
                ;;
+       zyxel,nwa1123-ac)
+               [ "$PHYNBR" -eq 0 ] && \
+                       mtd_get_mac_text mib0 0x66 > /sys${DEVPATH}/macaddress
+               ;;
        zyxel,nwa1123-ni)
                [ "$PHYNBR" -eq 1 ] && \
                        mtd_get_mac_text mib0 0x66 > /sys${DEVPATH}/macaddress