[PATCH 37/99] cw1200: Stay awake if join request sent to FW

Dmitry Tarnyagin dmitry.tarnyagin at stericsson.com
Wed Feb 29 14:14:44 UTC 2012


From: "Ajitpal.Singh" <ajitpal.singh at stericsson.com>

If a join request is pending towards the firmware
host should not try to suspend.
This change takes a 3 second wakelock if join request is outstanding.

ST-Ericsson ID: 367334

Signed-off-by: Ajitpal.Singh <ajitpal.singh at stericsson.com>
Change-Id: Ie36691211015c376ef3f02007872d9eccd038fb2
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/38125
Reviewed-by: Bartosz MARKOWSKI <bartosz.markowski at tieto.com>
Tested-by: Bartosz MARKOWSKI <bartosz.markowski at tieto.com>
---
 drivers/staging/cw1200/sta.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/cw1200/sta.c b/drivers/staging/cw1200/sta.c
index 5c9acc2..8598932 100644
--- a/drivers/staging/cw1200/sta.c
+++ b/drivers/staging/cw1200/sta.c
@@ -1250,6 +1250,8 @@ void cw1200_join_work(struct work_struct *work)
 		/* Queue unjoin if not associated in 3 sec. */
 		queue_delayed_work(priv->workqueue,
 			&priv->join_timeout, 3 * HZ);
+		/*Stay Awake for Join Timeout*/
+		cw1200_pm_stay_awake(&priv->pm_state, 3 * HZ);
 
 		cw1200_update_listening(priv, false);
 		/* BlockACK policy will be updated when assoc is done */
-- 
1.7.8.3



More information about the kernel mailing list