pmaports/device/community/wl1251-cal/calibrate-wl1251
Sicelo A. Mhlongo ea25bc48d7
device-nokia-n900: unconditionally fetch wl1251 nvs on each boot (MR 5050)
Reading the wl1251 data on each boot can be useful when using the same SD card
on different devices, allowing each to fetch its correct calibration data.
Additionally, this opens up the possibility to simplify the packaging (in
follow-up commit)
2024-04-20 23:26:07 +09:00

10 lines
284 B
Bash

#!/bin/sh -e
if [ -e /in-pmbootstrap ]; then
echo "Skipping update of wl1251 calibration data (running in pmbootstrap)"
exit 0
fi
echo "Updating wl1251 calibration data.."
wl1251-cal --nvs-loading=/dev/null --nvs-push-data=/lib/firmware/ti-connectivity/wl1251-nvs.bin
echo "Done"