From 91b7d01c3f505876b134d32a88f5b26530a08b45 Mon Sep 17 00:00:00 2001 From: Aditya Kodukula Date: Mon, 20 Apr 2020 11:45:00 -0700 Subject: [PATCH] qcacld-3.0: Align feature flag WLAN_POWER_DEBUG properly for power stats The WLAN_POWER_DEBUG feature flag for power stats is not properly aligned in the commit Ic395f393580fcd59faa4e4676f67a39ff37bdd1a and hence it is addressed in this change. Change-Id: I40236efa31e1d832884984536597122c04ecc269 CRs-Fixed: 2668142 --- core/hdd/src/wlan_hdd_sysfs.c | 2 +- core/wma/src/wma_features.c | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/core/hdd/src/wlan_hdd_sysfs.c b/core/hdd/src/wlan_hdd_sysfs.c index c2a72a9282ab..40454f3a5cd1 100644 --- a/core/hdd/src/wlan_hdd_sysfs.c +++ b/core/hdd/src/wlan_hdd_sysfs.c @@ -522,6 +522,7 @@ void hdd_sysfs_destroy_powerstats_interface(void) } sysfs_remove_file(driver_kobject, &power_stats_attribute.attr); } +#endif void hdd_sysfs_create_driver_root_obj(void) { @@ -551,7 +552,6 @@ void hdd_sysfs_destroy_driver_root_obj(void) driver_kobject = NULL; } } -#endif #ifdef WLAN_FEATURE_BEACON_RECEPTION_STATS static int hdd_sysfs_create_bcn_reception_interface(struct hdd_adapter diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 77b0bd868d32..5dc974256557 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -4902,13 +4902,6 @@ int wma_unified_power_debug_stats_event_handler(void *handle, qdf_mem_free(power_stats_results); return 0; } -#else -int wma_unified_power_debug_stats_event_handler(void *handle, - uint8_t *cmd_param_info, - uint32_t len) -{ - return 0; -} #endif #ifdef WLAN_FEATURE_BEACON_RECEPTION_STATS