ath79: align GL-AR750S boardname to other GL.iNet devices
[openwrt/openwrt.git] / target / linux / ath79 / base-files / etc / hotplug.d / firmware / 11-ath10k-caldata
index d8254e3ff9cce6595d33eb5b7f2b73cf10c91a9b..faee7819700f00f756107b2719949d0445e5b214 100644 (file)
@@ -87,10 +87,34 @@ board=$(board_name)
 case "$FIRMWARE" in
 "ath10k/cal-pci-0000:00:00.0.bin")
        case $board in
+       devolo,dvl1200e|\
+       devolo,dvl1750c)
+               ath10kcal_extract "art" 20480 2116
+               ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary art 0) -1)
+               ;;
+       dlink,dir-859-a1)
+               ath10kcal_extract "art" 20480 2116
+               ath10kcal_patch_mac $(mtd_get_mac_ascii devdata "wlan5mac")
+               ;;
+       elecom,wrc-1750ghbk2-i)
+               ath10kcal_extract "ART" 20480 2116
+               ;;
+       engenius,ews511ap|\
+       glinet,gl-ar750s|\
+       glinet,gl-x750|\
+       tplink,re450-v2)
+               ath10kcal_extract "art" 20480 2116
+               ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +1)
+               ;;
+       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)
                ;;
+       nec,wg800hp)
+               ath10kcal_extract "art" 20480 2116
+               ath10kcal_patch_mac_crc $(mtd_get_mac_text board_data 2176)
+               ;;
        ocedo,koala)
                ath10kcal_extract "art" 20480 2116
                ath10kcal_patch_mac $(mtd_get_mac_binary art 12)
@@ -103,13 +127,17 @@ case "$FIRMWARE" in
                ath10kcal_extract "art" 20480 2116
                ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -1)
                ;;
-       tplink,re450-v2)
+       tplink,archer-a7-v5|\
+       tplink,archer-c7-v5)
                ath10kcal_extract "art" 20480 2116
-               ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +1)
+               ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -1)
                ;;
        ubnt,unifiac-lite|\
        ubnt,unifiac-mesh|\
        ubnt,unifiac-mesh-pro|\
+       ubnt,lap-120|\
+       ubnt,nanostation-ac|\
+       ubnt,nanostation-ac-loco|\
        ubnt,unifiac-pro)
                ath10kcal_extract "EEPROM" 20480 2116
                ;;
@@ -123,6 +151,14 @@ 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,archer-c58-v1|\
+       tplink,archer-c59-v1|\
+       tplink,archer-c6-v2)
+               ath10kcal_extract "art" 20480 12064
+               ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary mac 8) -1)
+               ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
+                       /lib/firmware/ath10k/QCA9888/hw2.0/board.bin
+               ;;
        esac
        ;;
 *)