mirror of
https://github.com/open-sdr/openwifi.git
synced 2025-01-18 18:56:24 +00:00
Add script to enable all rx packet collecting for:
rx statistics. For example, the received ACK normally will not be reported to the rx driver statistics. After this script, we collect all packet (including ACK, all control/management packet) for statistics
This commit is contained in:
parent
b1a9fd07da
commit
8c9b1b478d
24
user_space/set_rx_monitor_all.sh
Executable file
24
user_space/set_rx_monitor_all.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/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 -x
|
||||
# set
|
||||
if [[ -n $1 ]]; then
|
||||
echo $1 > rx_monitor_all
|
||||
else
|
||||
echo 1 > rx_monitor_all
|
||||
fi
|
||||
|
||||
# show
|
||||
cat rx_monitor_all
|
||||
set +x
|
||||
|
||||
cd $home_dir
|
||||
|
Loading…
Reference in New Issue
Block a user