qcacmn: Add CDP support for RDK peer statistics framework

Add CDP APIs for:
a. To get/set rdk stats context into soc
b. To set rdk stats flag into soc
c. To flush rdk stats

Change-Id: I74e35f5fa244d6d38f46a4f64ebbad8a630589bd
This commit is contained in:
Amir Patel
2019-02-26 21:49:24 +05:30
committed by nshrivas
parent 9527e111d0
commit 256dcbe737
4 changed files with 129 additions and 0 deletions

View File

@@ -439,6 +439,13 @@ struct cdp_cmn_ops {
bool (*get_dp_capabilities)(struct cdp_soc_t *soc,
enum cdp_capabilities dp_caps);
void (*set_rate_stats_ctx)(struct cdp_soc_t *soc, void *ctx);
void* (*get_rate_stats_ctx)(struct cdp_soc_t *soc);
void (*txrx_peer_flush_rate_stats)(struct cdp_soc_t *soc,
struct cdp_pdev *pdev,
void *buf);
void (*txrx_flush_rate_stats_request)(struct cdp_soc_t *soc,
struct cdp_pdev *pdev);
};
struct cdp_ctrl_ops {
@@ -792,6 +799,9 @@ struct cdp_host_stats_ops {
int
(*txrx_get_ratekbps)(int preamb, int mcs,
int htflag, int gintval);
void
(*configure_rate_stats)(struct cdp_soc_t *soc,
uint8_t val);
};
struct cdp_wds_ops {