diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-12 17:38:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:07:03 -0500 |
commit | ab25ecaea5459f2206dbae25106cff67a24d309e (patch) | |
tree | c5f7917f257fc880c5cbe8037ab4b895899b47a9 /drivers/net/wireless/libertas/cmd.h | |
parent | f3db2bb411512d1ebd6233b3985d98f4fe7ea8a8 (diff) |
libertas: implement suspend and resume core methods
We (ab)use priv->fw_ready to stop the worker thread from sending more
commands or data after the response to the HOST_SLEEP_ACTIVATE command
comes in. And we set it from the callback function _directly_ to ensure
that the worker thread sees it immediately; if we did it in
lbs_suspend() after waking up, that might be too late.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.h')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/cmd.h b/drivers/net/wireless/libertas/cmd.h index e800295479ba..e44a0db50487 100644 --- a/drivers/net/wireless/libertas/cmd.h +++ b/drivers/net/wireless/libertas/cmd.h | |||
@@ -35,5 +35,7 @@ int lbs_mesh_config(struct lbs_private *priv, int enable); | |||
35 | 35 | ||
36 | int lbs_host_sleep_cfg(struct lbs_private *priv, uint32_t criteria, | 36 | int lbs_host_sleep_cfg(struct lbs_private *priv, uint32_t criteria, |
37 | uint8_t gpio, uint8_t gap); | 37 | uint8_t gpio, uint8_t gap); |
38 | int lbs_suspend(struct lbs_private *priv); | ||
39 | int lbs_resume(struct lbs_private *priv); | ||
38 | 40 | ||
39 | #endif /* _LBS_CMD_H */ | 41 | #endif /* _LBS_CMD_H */ |