fd431d07da22f8f75ab6649012d269959212b14c
[openwrt/staging/jow.git] / target / linux / ipq807x / base-files / etc / hotplug.d / firmware / 11-ath11k-caldata
1 #!/bin/sh
2
3 [ -e /lib/firmware/$FIRMWARE ] && exit 0
4
5 . /lib/functions/caldata.sh
6
7 board=$(board_name)
8
9 case "$FIRMWARE" in
10 "ath11k/IPQ8074/hw2.0/cal-ahb-c000000.wifi.bin")
11 case "$board" in
12 edimax,cax1800|\
13 qnap,301w|\
14 redmi,ax6|\
15 xiaomi,ax3600)
16 caldata_extract "0:art" 0x1000 0x20000
17 ;;
18 esac
19 ;;
20 *)
21 exit 1
22 ;;
23 esac