qcacmn: Enable update of per-peer statistics in MSDU Tx completions

Update of per-peer statistics was disabled from per-MSDU indications
as they are now updated from per-PPDU indications. However, the data from
per-PPDU indications is incorrect for some fields. Re-enable update of
statistics for per-MSDU completions till this issue is fixed in FW

Change-Id: I2983ef9244a6f95104ba49ab6d1c6543a951d0b2
CRs-Fixed: 2128230
This commit is contained in:
Pamidipati, Vijay 2017-10-17 20:12:03 +05:30 • committed by snandini
commit bd9c13f2e8
3 changed files with 8 additions and 2 deletions

View file

@ -169,8 +169,8 @@ enum cdp_host_txrx_stats {
* @CDP_PPDU_FTYPE_CTRL: Control/Management Frames
*/
enum cdp_ppdu_ftype {
CDP_PPDU_FTYPE_DATA,
CDP_PPDU_FTYPE_CTRL,
CDP_PPDU_FTYPE_DATA,
CDP_PPDU_FTYPE_MAX
};

View file

@ -59,6 +59,12 @@ static void dp_tx_stats_update(struct dp_soc *soc, struct dp_peer *peer,
{
struct dp_pdev *pdev = peer->vdev->pdev;
/* If the peer statistics are already processed as part of
* per-MSDU completion handler, do not process these again in per-PPDU
* indications */
if (soc->process_tx_status)
return;
DP_STATS_INC_PKT(peer, tx.comp_pkt,
(ppdu->success_msdus + ppdu->retry_msdus +
ppdu->failed_msdus),

View file

@ -2609,7 +2609,7 @@ QDF_STATUS dp_tx_soc_attach(struct dp_soc *soc)
* only for NPR EMU, should be removed, once NPR platforms
* are stable.
*/
soc->process_tx_status = 0;
soc->process_tx_status = 1;
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_INFO,
"%s HAL Tx init Success\n", __func__);