ar71xx: Archer C58/C59/C60 fix qca9886 wireless interface
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 7d2eca546d76b771b12026788510f73a293a9a93..0530d595a757618d93abe5c7c08492f60f1de4f5 100644 (file)
@@ -6,13 +6,15 @@ PHYNBR=${DEVPATH##*/phy}
 
 [ -n $PHYNBR ] || exit 0
 
-. /lib/ar71xx.sh
+. /lib/functions.sh
 . /lib/functions/system.sh
 
-board=$(ar71xx_board_name)
+board=$(board_name)
 
 case "$board" in
-       archer-c58-v1)
+       archer-c58-v1|\
+       archer-c59-v1|\
+       archer-c60-v1)
                echo $(macaddr_add $(mtd_get_mac_binary mac 8)  $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
                ;;
        *)