diff options
Diffstat (limited to 'target/linux/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata')
-rw-r--r-- | target/linux/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata b/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata new file mode 100644 index 0000000000..578ff7ad45 --- /dev/null +++ b/target/linux/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata @@ -0,0 +1,20 @@ +#!/bin/sh + +[ -e /lib/firmware/$FIRMWARE ] && exit 0 + +. /lib/functions/caldata.sh + +board=$(board_name) + +case "$FIRMWARE" in +"ath11k/IPQ8074/hw2.0/cal-ahb-c000000.wifi.bin") + case "$board" in + xiaomi,ax3600) + caldata_extract "0:art" 0x1000 0x20000 + ;; + esac + ;; +*) + exit 1 + ;; +esac |