projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c85a134b58b3001be9b9b42b9455959715f076cb
[openwrt/openwrt.git]
/
target
/
linux
/
ath79
/
nand
/
base-files
/
etc
/
hotplug.d
/
firmware
/
11-ath10k-caldata
1
#!/bin/sh
2
3
[
-e
/
lib
/
firmware
/
$FIRMWARE
] &&
exit
0
4
5
.
/
lib
/
function
s
/
caldata.sh
6
7
board
=
$
(
board_name
)
8
9
case
"
$FIRMWARE
"
in
10
"ath10k/cal-pci-0000:00:00.0.bin"
)
11
case
$board
in
12
zyxel
,
emg2926-q10a|\
13
zyxel
,
nbg6716
)
14
caldata_extract
"art"
0x5000 0x844
15
ath10k_patch_mac $
(
macaddr_add $
(
mtd_get_mac_ascii u-boot-env ethaddr
)
1
)
16
;;
17
esac
18
;;
19
*)
20
exit
1
21
;;
22
esac