mirror of
https://github.com/open-sdr/openwifi.git
synced 2025-02-20 17:52:48 +00:00
Remove unnecessary scripts
This commit is contained in:
parent
e557222ed1
commit
e2f9904a29
@ -1,41 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Author: Xianjun Jiao
|
||||
# SPDX-FileCopyrightText: 2019 UGent
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
if [ "$#" -ne 2 ]; then
|
||||
echo "Need 2 arguments. The 1st select rx antenna. The 2nd for tx antenna."
|
||||
echo "Eg, "
|
||||
echo "./set_ant rx2 tx2"
|
||||
echo "./set_ant rx1 tx1"
|
||||
echo "./set_ant rx2 tx1"
|
||||
echo "./set_ant rx1 tx2"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -x
|
||||
if [ $1 = "rx2" ]
|
||||
then
|
||||
./sdrctl dev sdr0 set reg drv_rx 1 1
|
||||
elif [ $1 = "rx1" ]
|
||||
then
|
||||
./sdrctl dev sdr0 set reg drv_rx 1 0
|
||||
else
|
||||
echo "The 1st argument must be rx2 or rx1!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $2 = "tx2" ]
|
||||
then
|
||||
./sdrctl dev sdr0 set reg drv_tx 1 1
|
||||
elif [ $2 = "tx1" ]
|
||||
then
|
||||
./sdrctl dev sdr0 set reg drv_tx 1 0
|
||||
else
|
||||
echo "The 2nd argument must be tx2 or tx1!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ifconfig sdr0 down
|
||||
ifconfig sdr0 up
|
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Author: Xianjun Jiao
|
||||
# SPDX-FileCopyrightText: 2019 UGent
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
./sdrctl dev sdr0 get reg xpu 19
|
||||
|
||||
./sdrctl dev sdr0 set reg xpu 19 3758096384
|
||||
|
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Author: Xianjun Jiao
|
||||
# SPDX-FileCopyrightText: 2019 UGent
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
./sdrctl dev sdr0 get reg xpu 19
|
||||
|
||||
./sdrctl dev sdr0 set reg xpu 19 3
|
||||
|
Loading…
x
Reference in New Issue
Block a user