summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ti-wlan/wl12xx-compat/drivers/net/wireless/wl12xx/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ti-wlan/wl12xx-compat/drivers/net/wireless/wl12xx/main.c b/ti-wlan/wl12xx-compat/drivers/net/wireless/wl12xx/main.c
index 80826a09927..aa75e55ae40 100644
--- a/ti-wlan/wl12xx-compat/drivers/net/wireless/wl12xx/main.c
+++ b/ti-wlan/wl12xx-compat/drivers/net/wireless/wl12xx/main.c
@@ -2036,7 +2036,9 @@ static int wl1271_op_suspend(struct ieee80211_hw *hw,
/* Do not suspend when a fw recovery is in progress */
if (test_bit(WL1271_FLAG_RECOVERY_WORK_PENDING, &wl->flags)) {
+#ifdef CONFIG_HAS_WAKELOCK
wake_lock_timeout(&wl->wake_lock, 5*HZ);
+#endif
return -EBUSY;
}