mirror of
https://github.com/open-sdr/openwifi.git
synced 2025-04-09 03:44:15 +00:00
Add script to restrict openwifi only use a fixed frequency:
to avoid extra tuning/scanning operation/procedure bringing ad9361 calibration and Linux channenl setting activities
This commit is contained in:
parent
0cfbe31c70
commit
a918498713
20
user_space/set_restrict_freq.sh
Executable file
20
user_space/set_restrict_freq.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
home_dir=$(pwd)
|
||||
|
||||
if test -d "/sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr"; then
|
||||
cd /sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr
|
||||
else
|
||||
cd /sys/devices/soc0/fpga-axi\@0/fpga-axi\@0\:sdr
|
||||
fi
|
||||
|
||||
# set
|
||||
if [[ -n $1 ]]; then
|
||||
echo $1 > restrict_freq_mhz
|
||||
fi
|
||||
|
||||
# show
|
||||
cat restrict_freq_mhz
|
||||
|
||||
cd $home_dir
|
||||
|
Loading…
x
Reference in New Issue
Block a user