From 988a1395f2a274f04fde9c8e37e6ceaf5511f6da Mon Sep 17 00:00:00 2001 From: Vevek Venkatesan Date: Wed, 19 Jun 2019 00:54:11 +0530 Subject: [PATCH] qcacld-3.0: featurize PKTLOG send cmd under feature flag Featurize PKTLOG send cmd under feature flag FEATURE_PKTLOG. Change-Id: Ia7cc0ce3fb3ff2c3b28a0957353f7a3efa4fb6f0 CRs-Fixed: 2474100 --- core/wma/src/wma_features.c | 4 ++-- core/wma/src/wma_main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 77327fb5c952..05388ad3ce07 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -1431,7 +1431,7 @@ QDF_STATUS wma_start_oem_data_req(tp_wma_handle wma_handle, } #endif /* FEATURE_OEM_DATA_SUPPORT */ -#if !defined(REMOVE_PKT_LOG) +#if !defined(REMOVE_PKT_LOG) && defined(FEATURE_PKTLOG) /** * wma_pktlog_wmi_send_cmd() - send pktlog enable/disable command to target * @handle: wma handle @@ -1453,7 +1453,7 @@ QDF_STATUS wma_pktlog_wmi_send_cmd(WMA_HANDLE handle, return QDF_STATUS_SUCCESS; } -#endif /* REMOVE_PKT_LOG */ +#endif /* !REMOVE_PKT_LOG && FEATURE_PKTLOG */ /** * wma_wow_wake_reason_str() - Converts wow wakeup reason code to text format diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 82a0bbb3b691..b015d34eaeeb 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -8590,7 +8590,7 @@ static QDF_STATUS wma_mc_process_msg(struct scheduler_msg *msg) (struct set_ie_param *)msg->bodyptr); qdf_mem_free(msg->bodyptr); break; -#if !defined(REMOVE_PKT_LOG) +#if !defined(REMOVE_PKT_LOG) && defined(FEATURE_PKTLOG) case WMA_PKTLOG_ENABLE_REQ: wma_pktlog_wmi_send_cmd(wma_handle, (struct ath_pktlog_wmi_params *)msg->bodyptr);