diff --git a/qdf/linux/src/qdf_lock.c b/qdf/linux/src/qdf_lock.c index 6e98635391..e90727456d 100644 --- a/qdf/linux/src/qdf_lock.c +++ b/qdf/linux/src/qdf_lock.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2019 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 @@ -22,10 +22,10 @@ #include #include -#ifdef CONFIG_MCL #include -#include +#ifdef CONFIG_MCL #include +#include #endif #include @@ -290,12 +290,11 @@ qdf_export_symbol(qdf_wake_lock_create); #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)) QDF_STATUS qdf_wake_lock_acquire(qdf_wake_lock_t *lock, uint32_t reason) { -#ifdef CONFIG_MCL host_diag_log_wlock(reason, qdf_wake_lock_name(lock), - WIFI_POWER_EVENT_DEFAULT_WAKELOCK_TIMEOUT, - WIFI_POWER_EVENT_WAKELOCK_TAKEN); -#endif + WIFI_POWER_EVENT_DEFAULT_WAKELOCK_TIMEOUT, + WIFI_POWER_EVENT_WAKELOCK_TAKEN); __pm_stay_awake(lock); + return QDF_STATUS_SUCCESS; } #else @@ -350,12 +349,11 @@ qdf_export_symbol(qdf_wake_lock_timeout_acquire); #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)) QDF_STATUS qdf_wake_lock_release(qdf_wake_lock_t *lock, uint32_t reason) { -#ifdef CONFIG_MCL host_diag_log_wlock(reason, qdf_wake_lock_name(lock), - WIFI_POWER_EVENT_DEFAULT_WAKELOCK_TIMEOUT, - WIFI_POWER_EVENT_WAKELOCK_RELEASED); -#endif + WIFI_POWER_EVENT_DEFAULT_WAKELOCK_TIMEOUT, + WIFI_POWER_EVENT_WAKELOCK_RELEASED); __pm_relax(lock); + return QDF_STATUS_SUCCESS; } #else