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
42 [ -f $ath10kcal_tmp ] && {
43 cp $ath10kcal_tmp /lib
/firmware
/$FIRMWARE