qcacmn: Scan radio special vap stats support

-Add flag to inidicate special vap configuration
-Add frame type counters while processing tlv
 WIFIRX_MPDU_START_E
-Add function to update special vap rx stats
-Add dp pdev param to enable/disable special vap
 stats reset
-Add function to reset special vap stats
-Add fucntion to get special vap stats
-Add CDP function to retreive special vap stats

Change-Id: Ia5de6743e472dc86c9e66b9e789c909a57025e35
CRs-Fixed: 3005425
This commit is contained in:
Jeevan Kukkalli
2021-08-02 14:58:21 +05:30
committed by Madan Koyyalamudi
parent 693dbbdf2f
commit 1665e7c8e5
10 changed files with 215 additions and 0 deletions

View File

@@ -351,11 +351,16 @@ struct dp_mon_pdev {
qdf_nbuf_t mcopy_status_nbuf;
bool is_dp_mon_pdev_initialized;
/* indicates if spcl vap is configured */
bool spcl_vap_configured;
/* enable spcl vap stats reset on ch change */
bool reset_spcl_vap_stats_enable;
};
struct dp_mon_vdev {
/* callback to hand rx monitor 802.11 MPDU to the OS shim */
ol_txrx_rx_mon_fp osif_rx_mon;
struct cdp_spcl_vap_stats spcl_vap_stats;
};
struct dp_mon_peer {
@@ -2261,6 +2266,25 @@ void monitor_pdev_set_mon_vdev(struct dp_vdev *vdev)
mon_pdev->mvdev = vdev;
}
static inline
void dp_monitor_pdev_config_spcl_vap(struct dp_pdev *pdev, bool val)
{
if (!pdev || !pdev->monitor_pdev)
return;
pdev->monitor_pdev->spcl_vap_configured = val;
}
static inline
void dp_monitor_pdev_reset_spcl_vap_stats_enable(struct dp_pdev *pdev,
bool val)
{
if (!pdev || !pdev->monitor_pdev)
return;
pdev->monitor_pdev->reset_spcl_vap_stats_enable = val;
}
QDF_STATUS dp_mon_soc_attach(struct dp_soc *soc);
QDF_STATUS dp_mon_soc_detach(struct dp_soc *soc);
QDF_STATUS dp_mon_pdev_attach(struct dp_pdev *pdev);