mirror of
https://github.com/breeze303/openwrt-ipq.git
synced 2025-12-16 16:41:07 +00:00
43 lines
770 B
Bash
43 lines
770 B
Bash
#!/bin/sh
|
|
|
|
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
|
|
|
. /lib/functions/caldata.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$FIRMWARE" in
|
|
"ath11k/IPQ6018/hw1.0/cal-ahb-c000000.wifi.bin")
|
|
case "$board" in
|
|
8devices,mango-dvk)
|
|
caldata_extract "0:ART" 0x1000 0x20000
|
|
;;
|
|
cambiumnetworks,xe3-4)
|
|
caldata_extract "0:ART" 0x1000 0x10000
|
|
;;
|
|
jdcloud,ax1800-pro)
|
|
caldata_extract_mmc "0:ART" 0x1000 0x10000
|
|
;;
|
|
netgear,wax214)
|
|
caldata_extract "0:art" 0x1000 0x10000
|
|
;;
|
|
yuncore,fap650)
|
|
caldata_extract "0:art" 0x1000 0x20000
|
|
;;
|
|
esac
|
|
;;
|
|
"ath11k/QCN9074/hw1.0/cal-pci-0000:01:00.0.bin")
|
|
case "$board" in
|
|
jdcloud,ax6600)
|
|
caldata_extract_mmc "0:ART" 0x26800 0x20000
|
|
;;
|
|
cambiumnetworks,xe3-4)
|
|
caldata_extract "0:ART" 0x26800 0x20000
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|