diff --git a/configs/default_defconfig b/configs/default_defconfig index 1da4ed4654ad0..c74ee1e20634d 100644 --- a/configs/default_defconfig +++ b/configs/default_defconfig @@ -552,14 +552,15 @@ endif # builds. Other OEMs are also protected using the TARGET_BUILD_VARIANT # config. ifneq ($(TARGET_BUILD_VARIANT),user) - ifeq ($(CONFIG_LITHIUM), y) - CONFIG_FEATURE_PKTLOG := n - else - CONFIG_FEATURE_PKTLOG := y - endif + CONFIG_FEATURE_PKTLOG := y CONFIG_WLAN_DEBUG_CRASH_INJECT := y endif +#Disable pktlog feature for lithium based target +ifeq ($(CONFIG_LITHIUM), y) + CONFIG_FEATURE_PKTLOG := n +endif + #Enable WLAN/Power debugfs feature only if debug_fs is enabled ifeq ($(CONFIG_DEBUG_FS), y) # Flag to enable debugfs. Depends on CONFIG_DEBUG_FS in kernel diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 5760bbd94ce5e..74159915bb9c6 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -7180,7 +7180,7 @@ static void wma_enable_specific_fw_logs(tp_wma_handle wma_handle, * Return: None * */ -#ifdef REMOVE_PKT_LOG +#if !defined(FEATURE_PKTLOG) || defined(REMOVE_PKT_LOG) static void wma_set_wifi_start_packet_stats(void *wma_handle, struct sir_wifi_start_log *start_log) {