xref: /openwifi/user_space/check_calib_inf.sh (revision 8a2eaff38f6fc86612b299931e933da9dd5f8fb5)
1#!/bin/bash
2
3(bash -c 'echo $PPID' > /tmp/check_calib_inf.pid
4while true; do
5	echo 0x0A7 > /sys/kernel/debug/iio/iio:device2/direct_reg_access
6	status=$( cat /sys/kernel/debug/iio/iio:device2/direct_reg_access )
7	if [ $status == "0xFF" ]; then
8		echo "WARNING: Tx Quadrature Calibration failed."
9	fi
10	sleep 5
11done) &
12
13