ar71xx: add support for COMFAST CF-E355AC
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / hotplug.d / firmware / 11-ath10k-caldata
index ecbc9b81637cc60b1664f6501b56422ba9f2919c..85a2a63022d16feb1cc223a24378f438379f7ae4 100644 (file)
@@ -38,11 +38,10 @@ ath10kcal_patch_mac() {
 
 [ -e /lib/firmware/$FIRMWARE ] && exit 0
 
-. /lib/ar71xx.sh
 . /lib/functions.sh
 . /lib/functions/system.sh
 
-board=$(ar71xx_board_name)
+board=$(board_name)
 
 case "$FIRMWARE" in
 "ath10k/cal-pci-0000:00:00.0.bin")
@@ -62,6 +61,7 @@ case "$FIRMWARE" in
                ath10kcal_extract "art" 20480 2116
                ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2)
                ;;
+       cf-e355ac|\
        cf-e380ac-v1|\
        cf-e380ac-v2|\
        dlan-pro-1200-ac|\
@@ -98,7 +98,8 @@ case "$FIRMWARE" in
        rb-952ui-5ac2nd)
                ath10kcal_from_file "/sys/firmware/routerboot/ext_wlan_data" 20480 2116
                ;;
-       re450)
+       re450|\
+       tl-wr902ac-v1)
                ath10kcal_extract "art" 20480 2116
                ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -2)
                ;;