summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAjitpal.Singh <ajitpal.singh@stericsson.com>2012-02-29 15:14:44 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:06:41 +0200
commit09f593a418774e2d06346cb10fcff67b5c323935 (patch)
tree7680186faa5e6f918be12fa57884c239e14880d4
parentf8c369d9d9db4d88dd862ea6094a517edbcf0fb8 (diff)
cw1200: Stay awake if join request sent to FW
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@stericsson.com> Change-Id: Ie36691211015c376ef3f02007872d9eccd038fb2 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/38125 Reviewed-by: Bartosz MARKOWSKI <bartosz.markowski@tieto.com> Tested-by: Bartosz MARKOWSKI <bartosz.markowski@tieto.com>
-rw-r--r--drivers/staging/cw1200/sta.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/cw1200/sta.c b/drivers/staging/cw1200/sta.c
index 9c6bb5a72e0..7b9d81b1575 100644
--- a/drivers/staging/cw1200/sta.c
+++ b/drivers/staging/cw1200/sta.c
@@ -1249,6 +1249,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 */