ath79: really fix TP-Link Archer C7 v2 MAC address
[openwrt/openwrt.git] / target / linux / ath79 / base-files / etc / hotplug.d / firmware / 11-ath10k-caldata
index d862f611e57d40ce2352512acdcf8bb85162a0b8..562237f191bb7172077916d717bf37c10208926a 100644 (file)
@@ -87,10 +87,24 @@ board=$(board_name)
 case "$FIRMWARE" in
 "ath10k/cal-pci-0000:00:00.0.bin")
        case $board in
-       openmesh,om5p-ac-v2)
+       "openmesh,om5p-ac-v2")
                ath10kcal_extract "ART" 20480 2116
                ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +16)
                ;;
+       "tplink,re450-v2")
+               ath10kcal_extract "art" 20480 2116
+               ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +1)
+               ;;
+       "tplink,tl-archer-c7-v2")
+               ath10kcal_extract "art" 20480 2116
+               ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -1)
+               ;;
+       "ubnt,unifiac-lite"|\
+       "ubnt,unifiac-mesh"|\
+       "ubnt,unifiac-mesh-pro"|\
+       "ubnt,unifiac-pro")
+               ath10kcal_extract "EEPROM" 20480 2116
+               ;;
        esac
        ;;
 "ath10k/pre-cal-pci-0000:00:00.0.bin")