ath79: move base-files for ZyXEL NBG6716
[openwrt/openwrt.git] / target / linux / ath79 / nand / 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/k2t.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 zyxel,nbg6716)
14 caldata_extract "art" 0x5000 0x844
15 ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1)
16 ;;
17 esac
18 ;;
19 *)
20 exit 1
21 ;;
22 esac