openwifi/user_space/set_lbt_th.sh
2022-03-28 12:23:36 +02:00

18 lines
229 B
Bash
Executable File

#!/bin/bash
if [[ -n $1 ]]; then
lbt_th=$1
else
lbt_th=987654321 # no input
fi
set -x
#set
if [ $lbt_th -ne 987654321 ]; then
./sdrctl dev sdr0 set reg drv_xpu 0 $lbt_th
fi
# show
./sdrctl dev sdr0 get reg xpu 8
set +x