diff --git a/utils/logging/src/wlan_logging_sock_svc.c b/utils/logging/src/wlan_logging_sock_svc.c index dffeee0efb..0c4e752500 100644 --- a/utils/logging/src/wlan_logging_sock_svc.c +++ b/utils/logging/src/wlan_logging_sock_svc.c @@ -23,18 +23,6 @@ #ifdef WLAN_LOGGING_SOCK_SVC_ENABLE #include -#ifdef CONFIG_MCL -#include -#include -#include "cds_utils.h" -#include "csr_api.h" -#include "wma.h" -#include "ol_txrx_api.h" -#include -#endif -#if defined(FEATURE_PKTLOG) && !defined(REMOVE_PKT_LOG) -#include -#endif /* FEATURE_PKTLOG */ #include #include #include @@ -51,6 +39,20 @@ #include #endif +#if defined(FEATURE_FW_LOG_PARSING) || defined(FEATURE_WLAN_DIAG_SUPPORT) || \ + defined(FEATURE_PKTLOG) +#include +#include "ani_global.h" +#endif + +#ifdef FEATURE_PKTLOG +#ifndef REMOVE_PKT_LOG +#include "wma.h" +#include "pktlog_ac.h" +#include +#endif +#endif + #define MAX_NUM_PKT_LOG 32 #define LOGGING_TRACE(level, args ...) \