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 a47b29e7c7fd443deb59494df393c6318a678026..d03e88041aea58ca9f16de2b20ea06b7c9e01dac 100644 (file)
@@ -13,7 +13,6 @@ 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|\
        watchguard,ap300)
@@ -74,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
@@ -263,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
        ;;
 *)