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