ipq807x: add support for Netgear RAX120v2
[openwrt/staging/stintel.git] / target / linux / qualcommax / 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 buffalo,wxr-5950ax12|\
13 compex,wpq873|\
14 edgecore,eap102|\
15 edimax,cax1800|\
16 dynalink,dl-wrx36|\
17 netgear,rax120v2|\
18 netgear,wax218|\
19 qnap,301w|\
20 redmi,ax6|\
21 xiaomi,ax3600|\
22 xiaomi,ax9000|\
23 zyxel,nbg7815)
24 caldata_extract "0:art" 0x1000 0x20000
25 ;;
26 prpl,haze)
27 caldata_extract_mmc "0:ART" 0x1000 0x20000
28 ;;
29 esac
30 ;;
31 "ath11k/QCN9074/hw1.0/cal-pci-0000:01:00.0.bin"|\
32 "ath11k/QCN9074/hw1.0/cal-pci-0001:01:00.0.bin")
33 case "$board" in
34 prpl,haze)
35 caldata_extract_mmc "0:ART" 0x26800 0x20000
36 ;;
37 xiaomi,ax9000)
38 caldata_extract "0:art" 0x26800 0x20000
39 ;;
40 esac
41 ;;
42 *)
43 exit 1
44 ;;
45 esac