8 ath10kcal_from_file() {
13 dd if=$source of=$target bs=1 skip=$offset count=2116 2>/dev/null || \
14 ath10kcal_die "failed to extract calibration data from $source"
17 [ -e /lib/firmware/$FIRMWARE ] && exit 0
21 . /lib/functions/system.sh
24 ath10kcal_tmp="/tmp/ath10k-caldata.bin"
26 board=$(ar71xx_board_name)
29 "ath10k/cal-pci-0000:01:00.0.bin")
32 ath10kcal_from_file "/sys/firmware/routerboot/ext_wlan_data" 20480 $ath10kcal_tmp
37 "ath10k/cal-pci-0000:00:00.0.bin")
40 ath10kcal_from_file $(find_mtd_part "art") 20480 $ath10kcal_tmp
44 ath10kcal_from_file $(find_mtd_part "caldata") 20480 $ath10kcal_tmp
54 [ -f $ath10kcal_tmp ] && {
55 cp $ath10kcal_tmp /lib/firmware/$FIRMWARE