qcacld-3.0: Add txrx_get_pldev API to get packetlog object

Packetlog initialization is failing as txrx_get_pldev API is missing,
which returns paketlog object from the given pdev.

Add txrx_get_pldev API to get packet log object for the given pdev.

Change-Id: I2219a5c0964e76637ff8dbef92661b98cd22fb28
CRs-Fixed: 2189211
This commit is contained in:
Hanumanth Reddy Pothula 2018-02-13 18:32:05 +05:30 • committed by snandini
commit 855f7ef72f

View file

@ -5911,6 +5911,16 @@ static struct cdp_mob_stats_ops ol_ops_mob_stats = {
.stats = ol_txrx_stats
};
static void *ol_get_pldev(struct cdp_pdev *txrx_pdev)
{
struct ol_txrx_pdev_t *handle = (struct ol_txrx_pdev_t *)txrx_pdev;
if (handle != NULL)
return handle->pl_dev;
return NULL;
}
static struct cdp_cfg_ops ol_ops_cfg = {
.set_cfg_rx_fwd_disabled = ol_set_cfg_rx_fwd_disabled,
.set_cfg_packet_log_enabled = ol_set_cfg_packet_log_enabled,
@ -5970,11 +5980,11 @@ static struct cdp_pmf_ops ol_ops_pmf = {
.get_pn_info = ol_txrx_get_pn_info
};
/* WINplatform specific structures */
static struct cdp_ctrl_ops ol_ops_ctrl = {
/* EMPTY FOR MCL */
.txrx_get_pldev = ol_get_pldev,
};
/* WINplatform specific structures */
static struct cdp_me_ops ol_ops_me = {
/* EMPTY FOR MCL */
};