From fef1078ed071cba0ffcbfa267af762323580862b Mon Sep 17 00:00:00 2001 From: Alok Kumar Date: Fri, 24 Jan 2020 16:57:24 +0530 Subject: [PATCH] qcacmn: DP change to get buffer size from INI file DP layer change to read the packet log buffer size from INI file. Change-Id: If307ad5abfd0360c3f39247ccc62abd32095303f CRs-Fixed: 2611406 --- dp/inc/cdp_txrx_cmn_struct.h | 1 + dp/inc/cdp_txrx_mob_def.h | 1 + dp/wifi3.0/dp_main.c | 3 +++ 3 files changed, 5 insertions(+) diff --git a/dp/inc/cdp_txrx_cmn_struct.h b/dp/inc/cdp_txrx_cmn_struct.h index defcef50c1..e973f348af 100644 --- a/dp/inc/cdp_txrx_cmn_struct.h +++ b/dp/inc/cdp_txrx_cmn_struct.h @@ -2215,6 +2215,7 @@ enum cdp_dp_cfg { cfg_dp_reorder_offload_supported, cfg_dp_ce_classify_enable, cfg_dp_disable_intra_bss_fwd, + cfg_dp_pktlog_buffer_size, }; /** diff --git a/dp/inc/cdp_txrx_mob_def.h b/dp/inc/cdp_txrx_mob_def.h index e91753bb72..c7d8900723 100644 --- a/dp/inc/cdp_txrx_mob_def.h +++ b/dp/inc/cdp_txrx_mob_def.h @@ -316,6 +316,7 @@ struct txrx_pdev_cfg_param_t { uint16_t bundle_timer_value; uint16_t bundle_size; #endif + uint8_t pktlog_buffer_size; }; #ifdef IPA_OFFLOAD diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 3937a902c1..bf9b211887 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -9936,6 +9936,9 @@ static uint32_t dp_get_cfg(struct cdp_soc_t *soc, enum cdp_dp_cfg cfg) case cfg_dp_disable_intra_bss_fwd: value = dpsoc->wlan_cfg_ctx->disable_intra_bss_fwd; break; + case cfg_dp_pktlog_buffer_size: + value = dpsoc->wlan_cfg_ctx->pktlog_buffer_size; + break; default: value = 0; }