ath79: support MikroTik RouterBOARD 911G-5HPacD
[openwrt/staging/stintel.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
7 wlan_data="/sys/firmware/mikrotik/hard_config/wlan_data"
8
9 board=$(board_name)
10
11 case "$FIRMWARE" in
12 "ath10k/cal-pci-0000:00:00.0.bin")
13 case $board in
14 mikrotik,routerboard-911g-5hpacd|\
15 mikrotik,routerboard-921gs-5hpacd-15s|\
16 mikrotik,routerboard-951ui-2nd|\
17 mikrotik,routerboard-952ui-5ac2nd|\
18 mikrotik,routerboard-962uigs-5hact2hnt|\
19 mikrotik,routerboard-wap-g-5hact2hnd)
20 caldata_sysfsload_from_file $wlan_data 0x5000 0x844
21 ;;
22 esac
23 ;;
24 "ath10k/cal-pci-0000:01:00.0.bin")
25 case $board in
26 mikrotik,routerboard-922uags-5hpacd)
27 caldata_sysfsload_from_file $wlan_data 0x5000 0x844
28 ;;
29 esac
30 ;;
31 *)
32 exit 1
33 ;;
34 esac