Skip to content

Commit 08da1b8

Browse files
krish2718rlubos
authored andcommitted
drivers: wifi: nrf71: Implement missing stats
A few of the stats are added later to the interface files, implement them. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
1 parent f3bf400 commit 08da1b8

1 file changed

Lines changed: 46 additions & 4 deletions

File tree

drivers/wifi/nrf71/src/wifi_util.c

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ static int nrf_wifi_util_dump_rpu_stats(const struct shell *sh,
508508
"tx_cmds_to_lmac: %u\n"
509509
"tx_dones_from_lmac: %u\n"
510510
"total_cmds_to_lmac: %u\n"
511+
"cmdq_empty: %u\n"
511512
"tx_packet_data_count: %u\n"
512513
"tx_packet_mgmt_count: %u\n"
513514
"tx_packet_beacon_count: %u\n"
@@ -518,7 +519,8 @@ static int nrf_wifi_util_dump_rpu_stats(const struct shell *sh,
518519
"tx_packet_disassoc_count: %u\n"
519520
"tx_packet_action_count: %u\n"
520521
"tx_packet_other_mgmt_count: %u\n"
521-
"tx_packet_non_mgmt_data_count: %u\n\n",
522+
"tx_packet_non_mgmt_data_count: %u\n"
523+
"tx_packet_eapol_count: %u\n\n",
522524
umac->tx_dbg_params.tx_cmd,
523525
umac->tx_dbg_params.tx_non_coalesce_pkts_rcvd_from_host,
524526
umac->tx_dbg_params.tx_coalesce_pkts_rcvd_from_host,
@@ -542,6 +544,7 @@ static int nrf_wifi_util_dump_rpu_stats(const struct shell *sh,
542544
umac->tx_dbg_params.tx_cmds_to_lmac,
543545
umac->tx_dbg_params.tx_dones_from_lmac,
544546
umac->tx_dbg_params.total_cmds_to_lmac,
547+
umac->tx_dbg_params.cmdq_empty,
545548
umac->tx_dbg_params.tx_packet_data_count,
546549
umac->tx_dbg_params.tx_packet_mgmt_count,
547550
umac->tx_dbg_params.tx_packet_beacon_count,
@@ -552,7 +555,8 @@ static int nrf_wifi_util_dump_rpu_stats(const struct shell *sh,
552555
umac->tx_dbg_params.tx_packet_disassoc_count,
553556
umac->tx_dbg_params.tx_packet_action_count,
554557
umac->tx_dbg_params.tx_packet_other_mgmt_count,
555-
umac->tx_dbg_params.tx_packet_non_mgmt_data_count);
558+
umac->tx_dbg_params.tx_packet_non_mgmt_data_count,
559+
umac->tx_dbg_params.tx_packet_eapol_count);
556560

557561
shell_fprintf(sh, SHELL_INFO,
558562
"UMAC RX debug stats\n"
@@ -585,6 +589,16 @@ static int nrf_wifi_util_dump_rpu_stats(const struct shell *sh,
585589
"rx_packet_other_mgmt_count: %u\n"
586590
"max_coalesce_pkts: %u\n"
587591
"null_skb_pointer_from_lmac: %u\n"
592+
"null_skb_pointer_from_host: %u\n"
593+
"null_skb_pointer_resubmitted: %u\n"
594+
"reorder_flush_pkt_count: %u\n"
595+
"unsecured_data_error: %u\n"
596+
"pkts_in_null_skb_pointer_event: %u\n"
597+
"rx_buffs_resubmit_cnt: %u\n"
598+
"rx_packet_amsdu_cnt: %u\n"
599+
"rx_packet_mpdu_cnt: %u\n"
600+
"rx_err_secondary_pkt: %u\n"
601+
"rx_err_invalid_pkt_info_type: %u\n"
588602
"unexpected_mgmt_pkt: %u\n\n",
589603
umac->rx_dbg_params.lmac_events,
590604
umac->rx_dbg_params.rx_events,
@@ -614,6 +628,16 @@ static int nrf_wifi_util_dump_rpu_stats(const struct shell *sh,
614628
umac->rx_dbg_params.rx_packet_other_mgmt_count,
615629
umac->rx_dbg_params.max_coalesce_pkts,
616630
umac->rx_dbg_params.null_skb_pointer_from_lmac,
631+
umac->rx_dbg_params.null_skb_pointer_from_host,
632+
umac->rx_dbg_params.null_skb_pointer_resubmitted,
633+
umac->rx_dbg_params.reorder_flush_pkt_count,
634+
umac->rx_dbg_params.unsecured_data_error,
635+
umac->rx_dbg_params.pkts_in_null_skb_pointer_event,
636+
umac->rx_dbg_params.rx_buffs_resubmit_cnt,
637+
umac->rx_dbg_params.rx_packet_amsdu_cnt,
638+
umac->rx_dbg_params.rx_packet_mpdu_cnt,
639+
umac->rx_dbg_params.rx_err_secondary_pkt,
640+
umac->rx_dbg_params.rx_err_invalid_pkt_info_type,
617641
umac->rx_dbg_params.unexpected_mgmt_pkt);
618642

619643
shell_fprintf(sh, SHELL_INFO,
@@ -631,9 +655,13 @@ static int nrf_wifi_util_dump_rpu_stats(const struct shell *sh,
631655
"cmd_trigger_scan: %u\n"
632656
"event_scan_done: %u\n"
633657
"cmd_get_scan: %u\n"
658+
"scan_cmd_fail: %u\n"
634659
"umac_scan_req: %u\n"
635660
"umac_scan_complete: %u\n"
636661
"umac_scan_busy: %u\n"
662+
"umac_scan_abort: %u\n"
663+
"umac_scan_abort_complete: %u\n"
664+
"umac_scan_abort_fail: %u\n"
637665
"cmd_auth: %u\n"
638666
"cmd_assoc: %u\n"
639667
"cmd_deauth: %u\n"
@@ -671,9 +699,13 @@ static int nrf_wifi_util_dump_rpu_stats(const struct shell *sh,
671699
umac->cmd_evnt_dbg_params.cmd_trigger_scan,
672700
umac->cmd_evnt_dbg_params.event_scan_done,
673701
umac->cmd_evnt_dbg_params.cmd_get_scan,
702+
umac->cmd_evnt_dbg_params.scan_cmd_fail,
674703
umac->cmd_evnt_dbg_params.umac_scan_req,
675704
umac->cmd_evnt_dbg_params.umac_scan_complete,
676705
umac->cmd_evnt_dbg_params.umac_scan_busy,
706+
umac->cmd_evnt_dbg_params.umac_scan_abort,
707+
umac->cmd_evnt_dbg_params.umac_scan_abort_complete,
708+
umac->cmd_evnt_dbg_params.umac_scan_abort_fail,
677709
umac->cmd_evnt_dbg_params.cmd_auth,
678710
umac->cmd_evnt_dbg_params.cmd_assoc,
679711
umac->cmd_evnt_dbg_params.cmd_deauth,
@@ -771,7 +803,12 @@ static int nrf_wifi_util_dump_rpu_stats(const struct shell *sh,
771803
"scan_abort_complete: %u\n"
772804
"internal_buf_pool_null: %u\n"
773805
"rpu_hw_lockup_count: %u\n"
774-
"rpu_hw_lockup_recovery_done: %u\n\n",
806+
"rpu_hw_lockup_recovery_done: %u\n"
807+
"SQIThresholdCmdsCnt: %u\n"
808+
"SQIConfigCmdsCnt: %u\n"
809+
"SQIEventsCnt: %u\n"
810+
"SleepType: %u\n"
811+
"warmBootCnt: %u\n\n",
775812
lmac->reset_cmd_cnt,
776813
lmac->reset_complete_event_cnt,
777814
lmac->unable_gen_event,
@@ -808,7 +845,12 @@ static int nrf_wifi_util_dump_rpu_stats(const struct shell *sh,
808845
lmac->scan_abort_complete,
809846
lmac->internal_buf_pool_null,
810847
lmac->rpu_hw_lockup_count,
811-
lmac->rpu_hw_lockup_recovery_done);
848+
lmac->rpu_hw_lockup_recovery_done,
849+
lmac->SQIThresholdCmdsCnt,
850+
lmac->SQIConfigCmdsCnt,
851+
lmac->SQIEventsCnt,
852+
lmac->SleepType,
853+
lmac->warmBootCnt);
812854
}
813855

814856
if (stats_type == RPU_STATS_TYPE_PHY || stats_type == RPU_STATS_TYPE_ALL) {

0 commit comments

Comments
 (0)