qcacmn: Update counter in mutipass rx packet drop

multipass_rx_pkt_drop is peer level stats counter
used to count multipass rx packet dropped frame.
Accumulate this counter at vdev and pdev level.

It also initializes multipass_en flag to false at
vdev attach.

Change-Id: Idaa85a71c80eefb9359abb026402b71aa28ad6a2
CRs-Fixed: 2595551
This commit is contained in:
Ankit Kumar
2020-01-02 10:15:16 +05:30
committed by nshrivas
parent 1affbbad46
commit 53581e92fd
5 changed files with 17 additions and 1 deletions

View File

@@ -2129,7 +2129,13 @@ done:
* process frame for mulitpass phrase processing
*/
if (qdf_unlikely(vdev->multipass_en)) {
dp_rx_multipass_process(peer, nbuf, tid);
if (dp_rx_multipass_process(peer, nbuf, tid) == false) {
DP_STATS_INC(peer, rx.multipass_rx_pkt_drop, 1);
qdf_nbuf_free(nbuf);
nbuf = next;
dp_peer_unref_del_find_by_id(peer);
continue;
}
}
if (!dp_wds_rx_policy_check(rx_tlv_hdr, vdev, peer)) {