mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-09 04:12:15 +00:00
This reverts commit 48603a271e6ff9e5cd851e873429893115e00c94 as this was commited by accident, its still work in progress. Signed-off-by: Petr Štetiar <ynezz@true.cz>
38 lines
599 B
Bash
38 lines
599 B
Bash
#!/bin/sh
|
|
|
|
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
|
|
|
. /lib/functions/caldata.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$FIRMWARE" in
|
|
"ath11k/IPQ8074/hw2.0/cal-ahb-c000000.wifi.bin")
|
|
case "$board" in
|
|
buffalo,wxr-5950ax12|\
|
|
compex,wpq873|\
|
|
edgecore,eap102|\
|
|
edimax,cax1800|\
|
|
dynalink,dl-wrx36|\
|
|
netgear,wax218|\
|
|
qnap,301w|\
|
|
redmi,ax6|\
|
|
xiaomi,ax3600|\
|
|
xiaomi,ax9000|\
|
|
zyxel,nbg7815)
|
|
caldata_extract "0:art" 0x1000 0x20000
|
|
;;
|
|
esac
|
|
;;
|
|
"ath11k/QCN9074/hw1.0/cal-pci-0000:01:00.0.bin")
|
|
case "$board" in
|
|
xiaomi,ax9000)
|
|
caldata_extract "0:art" 0x26800 0x20000
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|