ipq806x: add support for Extreme Networks AP3935
[openwrt/openwrt.git] / target / linux / ipq806x / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 5af3a5b8057df6b8f75b9ac162cc77fefde189d4..ef5fc344a6f3d111b8a7aba82e359615e66c15a5 100644 (file)
@@ -15,6 +15,11 @@ case "$board" in
        ubnt,unifi-ac-hd)
                macaddr_add $(mtd_get_mac_binary EEPROM 0x6) $(($PHYNBR + 1)) > /sys${DEVPATH}/macaddress
                ;;
+       extreme,ap3935)
+               echo "##### PHYNBR=$PHYNBR DEVPATH=$DEVPATH"
+               [ "$PHYNBR" = "0" ] && echo $(mtd_get_mac_ascii CFG1 RADIOADDR0) > /sys${DEVPATH}/macaddress
+               [ "$PHYNBR" = "1" ] && echo $(mtd_get_mac_ascii CFG1 RADIOADDR1) > /sys${DEVPATH}/macaddress
+               ;;
 esac
 
 OPATH=${DEVPATH##/devices/platform/}