mirror of
https://github.com/open-sdr/openwifi.git
synced 2025-01-18 18:56:24 +00:00
Script to set lbt (listen before talk) threshold
This commit is contained in:
parent
7efd1542d4
commit
0c346c2006
17
user_space/set_lbt_th.sh
Executable file
17
user_space/set_lbt_th.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user