ath79: add mikrotik subtarget
[openwrt/openwrt.git] / target / linux / ath79 / mikrotik / base-files / etc / hotplug.d / firmware / 11-ath10k-caldata
1 #!/bin/sh
2
3 [ -e /lib/firmware/$FIRMWARE ] && exit 0
4
5 . /lib/functions/caldata.sh
6 . /lib/functions/mikrotik-caldata.sh
7
8 board=$(board_name)
9
10 case "$FIRMWARE" in
11 "ath10k/cal-pci-0000:00:00.0.bin")
12 case $board in
13 mikrotik,routerboard-wap-g-5hact2hnd)
14 mikrotik_caldata_extract "art" 0x5000 0x844
15 ;;
16 esac
17 ;;
18 "ath10k/cal-pci-0000:01:00.0.bin")
19 case $board in
20 mikrotik,routerboard-922uags-5hpacd)
21 mikrotik_caldata_extract "art" 0x5000 0x844
22 ;;
23 esac
24 ;;
25 *)
26 exit 1
27 ;;
28 esac