qcacmn: Add RX stats support for Direct switch

Add support to send RX stats when Direct switch is
enabled. For WDS extended mode get the stats from
peer object, else take it from vdev object. These will
be accumulated by PPEDS module

Change-Id: I1f73c50679c416536cfc1ebaaeaec9b307e8bf56
CRs-Fixed: 3421251
This commit is contained in:
Parikshit Gune
2023-02-28 15:41:32 +05:30
committed by Madan Koyyalamudi
parent 543c9847e4
commit 1598a12f5c
8 changed files with 46 additions and 3 deletions

View File

@@ -1687,6 +1687,7 @@ struct cdp_tx_stats {
* @raw: Raw Pakets received
* @nawds_mcast_drop: Total multicast packets
* @mec_drop: Total MEC packets dropped
* @ppeds_drop: Total DS packets dropped
* @last_rx_ts: last timestamp in jiffies when RX happened
* @intra_bss: Intra-bss statistics
* @intra_bss.pkts: Intra BSS packets received
@@ -1777,6 +1778,7 @@ struct cdp_rx_stats {
struct cdp_pkt_info raw;
uint32_t nawds_mcast_drop;
struct cdp_pkt_info mec_drop;
struct cdp_pkt_info ppeds_drop;
unsigned long last_rx_ts;
struct {
struct cdp_pkt_info pkts;