diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 77327fb5c952c..05388ad3ce077 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 82a0bbb3b6919..b015d34eaeeb9 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);