ath79: fix several issues for ZyXEL NBG6716
[openwrt/staging/chunkeey.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
7 board=$(board_name)
8
9 case "$FIRMWARE" in
10 "ath10k/cal-pci-0000:00:00.0.bin")
11 case $board in
12 zyxel,nbg6716)
13 caldata_extract "art" 0x5000 0x844
14 ath10k_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1)
15 ;;
16 esac
17 ;;
18 *)
19 exit 1
20 ;;
21 esac