From 855f7ef72fcf3222df7ad32c6bbb67d3d720aba1 Mon Sep 17 00:00:00 2001 From: Hanumanth Reddy Pothula Date: Tue, 13 Feb 2018 18:32:05 +0530 Subject: [PATCH] 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 --- core/dp/txrx/ol_txrx.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/core/dp/txrx/ol_txrx.c b/core/dp/txrx/ol_txrx.c index 034aa7198152..fd5a637c15e4 100644 --- a/core/dp/txrx/ol_txrx.c +++ b/core/dp/txrx/ol_txrx.c @@ -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 */ };