qcacmn: Update Peer rx/tx rate based on DATA packets

Packets sent/received at fixed rate were also considered to
update the client rates as displayed in wlanconfig command output.
An idle client transmits NULL packets at basic rate and hence
rx rate shows up the basic rate when an idle client is connected.
Consider only data packets to update rates. Do not consider
NULL packets for rate update.
CRs-Fixed: 2435447

Change-Id: Icbf9f2a656bb0d36e16d953952c529185c119f17
このコミットが含まれているのは:
Jeffin Mammen
2019-05-20 10:30:44 +05:30
committed by nshrivas
コミット 1514e796b6
3個のファイルの変更33行の追加1行の削除

ファイルの表示

@@ -281,7 +281,8 @@ static void dp_rx_stats_update(struct dp_pdev *pdev, struct dp_peer *peer,
if (is_invalid_peer)
return;
dp_rx_rate_stats_update(peer, ppdu);
if (dp_is_subtype_data(ppdu->frame_ctrl))
dp_rx_rate_stats_update(peer, ppdu);
#if defined(FEATURE_PERPKT_INFO) && WDI_EVENT_ENABLE
dp_wdi_event_handler(WDI_EVENT_UPDATE_DP_STATS, pdev->soc,