qcacmn: Handle vdev_id as parameter for txrx stats handler
The datapath vdev handle is not to be used outside datapath layer. So the cdp api for getting txrx stats will pass vdev_id instead of the vdev handle. Pass vdev id instead of vdev handle for the cdp api used to get txrx stats. Use the vdev_id to retrieve the corresponding vdev handle in the txrx stats handler. CRs-Fixed: 2560364 Change-Id: I57b6c6b232d122583e85929fa972d68bc54e84e0
This commit is contained in:

committad av
nshrivas

förälder
3c5f8ef089
incheckning
e5430cb03e
@@ -8280,20 +8280,26 @@ static int dp_fw_stats_process(struct cdp_vdev *vdev_handle,
|
||||
|
||||
/**
|
||||
* dp_txrx_stats_request - function to map to firmware and host stats
|
||||
* @vdev: virtual handle
|
||||
* @soc: soc handle
|
||||
* @vdev_id: virtual device ID
|
||||
* @req: stats request
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
static
|
||||
QDF_STATUS dp_txrx_stats_request(struct cdp_vdev *vdev,
|
||||
QDF_STATUS dp_txrx_stats_request(struct cdp_soc_t *soc_handle,
|
||||
uint8_t vdev_id,
|
||||
struct cdp_txrx_stats_req *req)
|
||||
{
|
||||
struct dp_soc *soc = cdp_soc_t_to_dp_soc(soc_handle);
|
||||
struct cdp_vdev *vdev;
|
||||
int host_stats;
|
||||
int fw_stats;
|
||||
enum cdp_stats stats;
|
||||
int num_stats;
|
||||
|
||||
vdev = dp_vdev_to_cdp_vdev(dp_get_vdev_from_soc_vdev_id_wifi3(soc,
|
||||
vdev_id));
|
||||
if (!vdev || !req) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
|
||||
"Invalid vdev/req instance");
|
||||
|
Referens i nytt ärende
Block a user