From 7388de573c2fe947b2fa6b0ddda4b5b8d77de14d 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 fb6203d2038e..529c4d4eede3 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -1500,6 +1500,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; @@ -1651,6 +1652,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 d96ea95c5cf3..099561c24a8e 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -9471,6 +9471,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;