mediatek: add Comfast CF-E393AX support
[openwrt/staging/svanheule.git] / target / linux / mediatek / filogic / base-files / etc / hotplug.d / ieee80211 / 11_fix_wifi_mac
index 937d39066c0fde87bddae7920e9ccd45b5e17969..1f00e9b2854ea1d4cbb634493c332ebe7be76d55 100644 (file)
@@ -57,6 +57,10 @@ case "$board" in
                esac
                [ "$PHYNBR" = "1" ] && echo "$addr" > /sys${DEVPATH}/macaddress
                ;;
+       comfast,cf-e393ax)
+               addr=$(mtd_get_mac_binary "Factory" 0x8000)
+               [ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
+               ;;
        cudy,wr3000-v1)
                addr=$(mtd_get_mac_binary bdinfo 0xde00)
                # Originally, phy0 is phy1 mac with LA bit set. However, this would conflict