ath79: add support for ZyXEL NBG6616
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 8ea23a8ac6b9d872db1718a19d7b821710355df7..b592da00e3299d3e5102500c7be922e96c955d35 100644 (file)
@@ -50,4 +50,9 @@ case "$board" in
                [ "$PHYNBR" -eq 0 ] && \
                        macaddr_add "$(mtd_get_mac_text mac 0x18)" 1 > /sys${DEVPATH}/macaddress
                ;;
                [ "$PHYNBR" -eq 0 ] && \
                        macaddr_add "$(mtd_get_mac_text mac 0x18)" 1 > /sys${DEVPATH}/macaddress
                ;;
+       zyxel,nbg6616)
+               # Set mac address for 2.4g device
+               [ "$PHYNBR" -eq 1 ] && \
+                       mtd_get_mac_ascii u-boot-env ethaddr > /sys${DEVPATH}/macaddress
+               ;;
 esac
 esac