2 # Based on ar71xx 11-ath10k-caldata and 10-rt2x00-eeprom
4 [ -e /lib
/firmware
/$FIRMWARE ] && exit 0
6 .
/lib
/functions
/caldata.sh
8 ath10k_caldata_set_macaddr
() {
11 macaddr_2bin
$macaddr |
dd of
=/lib
/firmware
/$FIRMWARE \
12 conv
=notrunc bs
=1 seek
=6 count
=6
16 "ath10k/cal-pci-0000:02:00.0.bin")
20 caldata_extract_ubi
"caldata" 0x5000 0x844
21 ath10k_caldata_set_macaddr $
(macaddr_add $
(mtd_get_mac_binary_ubi caldata
0x110c) +3)
24 caldata_die
"board $board is not supported yet"