ath79: Add support for Ubiquiti NanoStation AC loco
[openwrt/staging/chunkeey.git] / target / linux / ath79 / base-files / etc / hotplug.d / firmware / 11-ath10k-caldata
index 20df5a220f5b8d606002b7484a9cf8e2be90871c..ec490dda7faa0ee7da590308a363b89580879aab 100644 (file)
@@ -87,15 +87,32 @@ board=$(board_name)
 case "$FIRMWARE" in
 "ath10k/cal-pci-0000:00:00.0.bin")
        case $board in
-       "openmesh,om5p-ac-v2")
+       iodata,wn-ac1167dgr|\
+       iodata,wn-ac1600dgr2)
+               ath10kcal_extract "art" 20480 2116
+               ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1)
+               ;;
+       ocedo,koala)
+               ath10kcal_extract "art" 20480 2116
+               ath10kcal_patch_mac $(mtd_get_mac_binary art 12)
+               ;;
+       openmesh,om5p-ac-v2)
                ath10kcal_extract "ART" 20480 2116
                ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +16)
                ;;
-       "tplink,tl-archer-c7-v2")
+       tplink,archer-c7-v2)
                ath10kcal_extract "art" 20480 2116
-               ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2)
+               ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -1)
                ;;
-       "ubnt,ubnt-unifiac-lite")
+       tplink,re450-v2)
+               ath10kcal_extract "art" 20480 2116
+               ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +1)
+               ;;
+       ubnt,unifiac-lite|\
+       ubnt,unifiac-mesh|\
+       ubnt,unifiac-mesh-pro|\
+       ubnt,nanostation-ac-loco|\
+       ubnt,unifiac-pro)
                ath10kcal_extract "EEPROM" 20480 2116
                ;;
        esac
@@ -105,7 +122,6 @@ case "$FIRMWARE" in
        phicomm,k2t)
                ath10kcal_extract "art" 20480 12064
                ath10kcal_patch_mac_crc $(k2t_get_mac "5g_mac")
-
                ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
                        /lib/firmware/ath10k/QCA9888/hw2.0/board.bin
                ;;