ath79: add support for I-O DATA WN-AC1600DGR
[openwrt/staging/chunkeey.git] / target / linux / ath79 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 14d4f6b9d60411ed5fb7d63e34a005f68c18ad08..2da2e8bfb0f58784a2b2c980e3af8c15ca739d3c 100644 (file)
@@ -19,6 +19,12 @@ case "$board" in
                [ "$PHYNBR" -eq 1 ] && \
                        echo $(macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1) > /sys${DEVPATH}/macaddress
                ;;
+       iodata,wn-ac1600dgr)
+               # There is no eeprom data for 5 GHz wlan in "art" partition
+               # which would allow to patch the macaddress
+               [ "$PHYNBR" -eq 0 ] && \
+                       echo $(macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1) > /sys${DEVPATH}/macaddress
+               ;;
        phicomm,k2t)
                # The K2T factory firmware does use LAN mac address as the 2.4G wifi mac address
                [ "$PHYNBR" -eq 1 ] && \