Get Wi-Fi Station Stats#
Run the following command to check the driver status, management packet stats, and data packet stats:
# cat /sys/kernel/debug/phy<X>/stats
You can expect results similar to those below.
==> RSI STA DRIVER STATUS <==
DRIVER_FSM_STATE: (9)
total_mgmt_pkt_send : 114 total_mgmt_pkt_queued : 0 total_mgmt_pkt_freed : 0
total_data_vo_pkt_send: 4 total_data_vo_pkt_queued: 0 total_data_vo_pkt_freed: 4
total_data_vi_pkt_send: 0 total_data_vi_pkt_queued: 0 total_data_vi_pkt_freed: 0
total_data_be_pkt_send: 230 total_data_be_pkt_queued: 0 total_data_be_pkt_freed: 230
total_data_bk_pkt_send: 0 total_data_bk_pkt_queued: 0 total_data_bk_pkt_freed: 0
In this case, the value of DRIVER_FSM_STATE
is shown in the table below:
DRIVER_FSM_STATE | Value |
---|---|
FSM_FW_NOT_LOADED | 0 |
FSM_CARD_NOT_READY | 1 |
FSM_COMMON_DEV_PARAMS_SENT | 2 |
FSM_BOOT_PARAMS_SENT | 3 |
FSM_EEPROM_READ_MAC_ADDR | 4 |
FSM_EEPROM_READ_RF_TYPE | 5 |
FSM_RESET_MAC_SENT | 6 |
FSM_RADIO_CAPS_SENT | 7 |
FSM_BB_RF_PROG_SENT | 8 |
FSM_MAC_INIT_DONE | 9 |