2015-07-07 13:44:53 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Based on ar71xx 11-ath10k-caldata and 10-rt2x00-eeprom
|
|
|
|
|
2015-10-03 11:57:54 +00:00
|
|
|
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
|
|
|
|
2019-09-22 09:57:13 +00:00
|
|
|
. /lib/functions/caldata.sh
|
2015-07-07 13:44:53 +00:00
|
|
|
|
|
|
|
case "$FIRMWARE" in
|
|
|
|
"ath10k/cal-pci-0000:02:00.0.bin")
|
2017-03-17 15:21:30 +00:00
|
|
|
board=$(board_name)
|
2015-07-07 13:44:53 +00:00
|
|
|
case $board in
|
2017-04-08 09:16:21 +00:00
|
|
|
bt,homehub-v5a)
|
2019-09-22 09:57:13 +00:00
|
|
|
caldata_extract_ubi "caldata" 0x5000 0x844
|
2019-09-22 09:57:14 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary_ubi caldata 0x110c) +3)
|
2015-07-07 13:44:53 +00:00
|
|
|
;;
|
|
|
|
*)
|
2019-09-22 09:57:13 +00:00
|
|
|
caldata_die "board $board is not supported yet"
|
2015-07-07 13:44:53 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|