ath79: use nvmem-cells for radio calibration of EAP1200H
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / hotplug.d / firmware / 11-ath10k-caldata
index 0aa3e006f6db99a7336d163990cc2509c6b34b21..d03e88041aea58ca9f16de2b20ea06b7c9e01dac 100644 (file)
@@ -13,9 +13,9 @@ case "$FIRMWARE" in
        allnet,all-wap02860ac|\
        araknis,an-500-ap-i-ac|\
        araknis,an-700-ap-i-ac|\
-       engenius,eap1200h|\
        engenius,enstationac-v1|\
-       glinet,gl-x750)
+       glinet,gl-x750|\
+       watchguard,ap300)
                caldata_extract "art" 0x5000 0x844
                ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) 2)
                ;;
@@ -73,9 +73,6 @@ case "$FIRMWARE" in
                caldata_extract "art" 0x5000 0x844
                ath10k_patch_mac $(mtd_get_mac_ascii devdata "wlan5mac")
                ;;
-       elecom,wrc-1750ghbk2-i)
-               caldata_extract "art" 0x5000 0x844
-               ;;
        engenius,ecb1200|\
        engenius,ecb1750)
                caldata_extract "art" 0x5000 0x844
@@ -93,6 +90,10 @@ case "$FIRMWARE" in
                caldata_extract "art" 0x5000 0x844
                ath10k_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) 1)
                ;;
+       extreme-networks,ws-ap3805i)
+               caldata_extract "art" 0x5000 0x844
+               ath10k_patch_mac $(mtd_get_mac_ascii cfg1 RADIOADDR0)
+               ;;
        glinet,gl-ar750)
                caldata_extract "art" 0x5000 0x844
                ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) 1)
@@ -258,6 +259,13 @@ case "$FIRMWARE" in
                ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
                        /lib/firmware/ath10k/QCA9888/hw2.0/board.bin
                ;;
+       tplink,deco-s4-v2)
+               caldata_extract "art" 0x5000 0x2f20
+               base_mac=$(mtd_get_mac_encrypted_deco $(find_mtd_part config))
+               ath10k_patch_mac $(macaddr_add $base_mac 2)
+               ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
+                       /lib/firmware/ath10k/QCA9888/hw2.0/board.bin
+               ;;
        esac
        ;;
 *)