23 lines
366 B
Text
23 lines
366 B
Text
|
#!/bin/sh
|
||
|
|
||
|
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
||
|
|
||
|
. /lib/functions/caldata.sh
|
||
|
. /lib/functions/k2t.sh
|
||
|
|
||
|
board=$(board_name)
|
||
|
|
||
|
case "$FIRMWARE" in
|
||
|
"ath10k/cal-pci-0000:00:00.0.bin")
|
||
|
case $board in
|
||
|
zyxel,nbg6716)
|
||
|
caldata_extract "art" 0x5000 0x844
|
||
|
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1)
|
||
|
;;
|
||
|
esac
|
||
|
;;
|
||
|
*)
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|