libertas: implement suspend and resume core methods
commitab25ecaea5459f2206dbae25106cff67a24d309e
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 12 Dec 2007 22:38:56 +0000 (12 17:38 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:07:03 +0000 (28 15:07 -0800)
treec5f7917f257fc880c5cbe8037ab4b895899b47a9
parentf3db2bb411512d1ebd6233b3985d98f4fe7ea8a8
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>
drivers/net/wireless/libertas/cmd.h
drivers/net/wireless/libertas/main.c