wlan: Disallow suspend req from OS, when STA is associating with SAP
Disallow suspend req from OS, when STA is associating with SAP
Change-Id: I207e91a53e8e1276f3349a2b41a6d883323d71ef
CR-Fixed: 424985
diff --git a/CORE/HDD/inc/wlan_hdd_main.h b/CORE/HDD/inc/wlan_hdd_main.h
index c903cbf..124eca6 100644
--- a/CORE/HDD/inc/wlan_hdd_main.h
+++ b/CORE/HDD/inc/wlan_hdd_main.h
@@ -50,9 +50,7 @@
#include <wlan_hdd_wmm.h>
#include <wlan_hdd_cfg.h>
#include <linux/spinlock.h>
-#ifdef WLAN_FEATURE_HOLD_RX_WAKELOCK
#include <linux/wakelock.h>
-#endif
#ifdef ANI_MANF_DIAG
#include <wlan_hdd_ftm.h>
#endif
@@ -145,6 +143,8 @@
#define HDD_WAKE_LOCK_DURATION 50
#endif
+#define HDD_SAP_WAKE_LOCK_DURATION 10000 //10 sec
+
typedef struct hdd_tx_rx_stats_s
{
// start_xmit stats
@@ -911,6 +911,8 @@
u_int8_t hdd_restart_retries;
hdd_scaninfo_t scan_info;
+
+ struct wake_lock sap_wake_lock;
};