From 83f27ea80dcf7ff4000bd6fa8494b5d47ae05b79 Mon Sep 17 00:00:00 2001 From: Rakesh Pillai Date: Wed, 2 Dec 2020 19:10:09 +0530 Subject: [PATCH] qcacld-3.0: Dump txrx hw ring info during disconnection Dump the txrx hw ring after a disconnection in STA mode. This will help in debugging back-pressure issues. Change-Id: Id4c9a391d6804e5a24a38a77b4cbee9ace0fd999 CRs-Fixed: 2831358 --- core/hdd/src/wlan_hdd_assoc.c | 2 ++ core/hdd/src/wlan_hdd_main.c | 1 + 2 files changed, 3 insertions(+) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 733a3732c7..1398c52dc5 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -1544,6 +1544,7 @@ static void hdd_send_association_event(struct net_device *dev, struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev); struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter); struct hdd_station_ctx *sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter); + ol_txrx_soc_handle soc = cds_get_context(QDF_MODULE_ID_SOC); union iwreq_data wrqu; int we_event; char *msg; @@ -1695,6 +1696,7 @@ static void hdd_send_association_event(struct net_device *dev, /* stop timer in sta/p2p_cli */ hdd_bus_bw_compute_reset_prev_txrx_stats(adapter); hdd_bus_bw_compute_timer_try_stop(hdd_ctx); + cdp_display_txrx_hw_info(soc); } hdd_ipa_set_tx_flow_info(); diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index a149efa1f2..b718071ffd 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -9546,6 +9546,7 @@ static void hdd_display_periodic_stats(struct hdd_context *hdd_ctx, QDF_STATS_VERBOSITY_LEVEL_LOW); wlan_hdd_display_netif_queue_history (hdd_ctx, QDF_STATS_VERBOSITY_LEVEL_LOW); + cdp_display_txrx_hw_info(soc); qdf_dp_trace_dump_stats(); } counter = 0;