2020-02-28 15:01:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
|
|
|
|
|
|
|
. /lib/functions/caldata.sh
|
2020-04-19 09:42:45 +00:00
|
|
|
|
|
|
|
wlan_data="/sys/firmware/mikrotik/hard_config/wlan_data"
|
2020-02-28 15:01:02 +00:00
|
|
|
|
|
|
|
board=$(board_name)
|
|
|
|
|
|
|
|
case "$FIRMWARE" in
|
|
|
|
"ath10k/cal-pci-0000:00:00.0.bin")
|
|
|
|
case $board in
|
|
|
|
mikrotik,routerboard-wap-g-5hact2hnd)
|
2020-04-19 09:42:45 +00:00
|
|
|
caldata_from_file $wlan_data 0x5000 0x844
|
2020-02-28 15:01:02 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
"ath10k/cal-pci-0000:01:00.0.bin")
|
|
|
|
case $board in
|
|
|
|
mikrotik,routerboard-922uags-5hpacd)
|
2020-04-19 09:42:45 +00:00
|
|
|
caldata_from_file $wlan_data 0x5000 0x844
|
2020-02-28 15:01:02 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|