forked from open-sdr/openwifi
-
Notifications
You must be signed in to change notification settings - Fork 5
/
tx_stat_show.sh
executable file
·50 lines (38 loc) · 1.19 KB
/
tx_stat_show.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/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
# show
cat tx_data_pkt_need_ack_num_total
cat tx_data_pkt_need_ack_num_total_fail
cat tx_data_pkt_need_ack_num_retx
cat tx_data_pkt_need_ack_num_retx_fail
cat tx_data_pkt_mcs_realtime
cat tx_data_pkt_fail_mcs_realtime
cat tx_mgmt_pkt_need_ack_num_total
cat tx_mgmt_pkt_need_ack_num_total_fail
cat tx_mgmt_pkt_need_ack_num_retx
cat tx_mgmt_pkt_need_ack_num_retx_fail
cat tx_mgmt_pkt_mcs_realtime
cat tx_mgmt_pkt_fail_mcs_realtime
# clear
if [[ -n $1 ]]; then
echo 0 > tx_data_pkt_need_ack_num_total
echo 0 > tx_data_pkt_need_ack_num_total_fail
echo 0 > tx_data_pkt_need_ack_num_retx
echo 0 > tx_data_pkt_need_ack_num_retx_fail
echo 0 > tx_data_pkt_mcs_realtime
echo 0 > tx_data_pkt_fail_mcs_realtime
echo 0 > tx_mgmt_pkt_need_ack_num_total
echo 0 > tx_mgmt_pkt_need_ack_num_total_fail
echo 0 > tx_mgmt_pkt_need_ack_num_retx
echo 0 > tx_mgmt_pkt_need_ack_num_retx_fail
echo 0 > tx_mgmt_pkt_mcs_realtime
echo 0 > tx_mgmt_pkt_fail_mcs_realtime
fi
set +x
cd $home_dir