ar71xx: add support for TP-LINK Archer C7 v4
[openwrt/staging/hauke.git] / target / linux / ar71xx / base-files / etc / hotplug.d / firmware / 11-ath10k-caldata
index 91db049c4434bf0200090eb62d1c7042037cd9ad..66796593c0504ff74d7bb12f08ba1975152c50b7 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")
@@ -55,6 +54,7 @@ case "$FIRMWARE" in
                ath10kcal_extract "ART" 20480 2116
                ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +16)
                ;;
+       archer-c7-v4|\
        archer-c25-v1|\
        archer-c59-v1|\
        archer-c60-v1|\
@@ -62,6 +62,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 +99,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)
                ;;
@@ -110,6 +112,9 @@ case "$FIRMWARE" in
        unifiac-pro)
                ath10kcal_extract "EEPROM" 20480 2116
                ;;
+       wi2a-ac200i)
+               ath10kcal_extract "ART" 20480 2116
+               ;;
        esac
        ;;
 "ath10k/cal-pci-0000:01:00.0.bin")
@@ -134,6 +139,13 @@ case "$FIRMWARE" in
                ;;
        esac
        ;;
+"ath10k/pre-cal-pci-0000:00:00.0.bin")
+       case $board in
+       archer-c58-v1)
+               ath10kcal_extract "art" 20480 12064
+               ;;
+       esac
+       ;;
 *)
        exit 1
        ;;