|
@@ -1,5 +1,5 @@
|
|
|
|
|
|
- * Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -33,7 +33,9 @@
|
|
|
#include "cds_api.h"
|
|
|
#include <wlan_osif_request_manager.h>
|
|
|
#include <qdf_mem.h>
|
|
|
+#ifdef WLAN_POWER_DEBUG
|
|
|
#include <sir_api.h>
|
|
|
+#endif
|
|
|
#include "osif_sync.h"
|
|
|
|
|
|
#define MAX_PSOC_ID_SIZE 10
|
|
@@ -123,6 +125,7 @@ static ssize_t show_fw_version(struct kobject *kobj,
|
|
|
return length;
|
|
|
};
|
|
|
|
|
|
+#ifdef WLAN_POWER_DEBUG
|
|
|
struct power_stats_priv {
|
|
|
struct power_stats_response power_stats;
|
|
|
};
|
|
@@ -273,6 +276,7 @@ static ssize_t show_device_power_stats(struct kobject *kobj,
|
|
|
|
|
|
return length;
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
#ifdef WLAN_FEATURE_BEACON_RECEPTION_STATS
|
|
|
struct beacon_reception_stats_priv {
|
|
@@ -431,8 +435,10 @@ static struct kobj_attribute dr_ver_attribute =
|
|
|
__ATTR(driver_version, 0440, show_driver_version, NULL);
|
|
|
static struct kobj_attribute fw_ver_attribute =
|
|
|
__ATTR(version, 0440, show_fw_version, NULL);
|
|
|
+#ifdef WLAN_POWER_DEBUG
|
|
|
static struct kobj_attribute power_stats_attribute =
|
|
|
__ATTR(power_stats, 0444, show_device_power_stats, NULL);
|
|
|
+#endif
|
|
|
|
|
|
void hdd_sysfs_create_version_interface(struct wlan_objmgr_psoc *psoc)
|
|
|
{
|
|
@@ -493,6 +499,7 @@ void hdd_sysfs_destroy_version_interface(void)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+#ifdef WLAN_POWER_DEBUG
|
|
|
void hdd_sysfs_create_powerstats_interface(void)
|
|
|
{
|
|
|
int error;
|
|
@@ -544,6 +551,7 @@ 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
|