diff options
| author | Edhar, Mahesh Kumar <c_medhar@qti.qualcomm.com> | 2015-12-28 16:58:49 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-12-30 12:26:24 +0530 |
| commit | e7baf772f63e43eba253df4c66ab371dbd7ba345 (patch) | |
| tree | 325d67da2c34754daaa25a8bd6cd97167c7fcf37 | |
| parent | ed199943dfec1ef5959a86d01f70a5271298da8d (diff) | |
qcacld-2.0: Dump TX/RX count on get_station cfg80211 function call
Change made to print TX/RX packet count values during get_station
function call to help in debugging data path issues.
Change-Id: I0798123f96111bbadc4014f5f04193d88977a38b
CRs-Fixed: 956473
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg80211.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index 9379985fa907..43bfb94bda4b 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -18464,12 +18464,6 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy, } } - if (rate_flags & eHAL_TX_RATE_LEGACY) - hddLog(LOG1, FL("Reporting legacy rate %d"), sinfo->txrate.legacy); - else - hddLog(LOG1, FL("Reporting MCS rate %d flags 0x%x"), - sinfo->txrate.mcs, sinfo->txrate.flags); - sinfo->filled |= STATION_INFO_TX_BITRATE; sinfo->tx_bytes = pAdapter->stats.tx_bytes; @@ -18504,6 +18498,14 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy, sinfo->rx_packets = pAdapter->stats.rx_packets; sinfo->filled |= STATION_INFO_RX_PACKETS; + if (rate_flags & eHAL_TX_RATE_LEGACY) + hddLog(LOG1, FL("Reporting legacy rate %d pkt cnt tx %d rx %d"), + sinfo->txrate.legacy, sinfo->tx_packets, sinfo->rx_packets); + else + hddLog(LOG1, FL("Reporting MCS rate %d flags 0x%x pkt cnt tx %d rx %d"), + sinfo->txrate.mcs, sinfo->txrate.flags, sinfo->tx_packets, + sinfo->rx_packets); + MTRACE(vos_trace(VOS_MODULE_ID_HDD, TRACE_CODE_HDD_CFG80211_GET_STA, pAdapter->sessionId, maxRate)); |
