diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2014-03-25 19:01:20 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-03-27 14:20:06 -0400 |
commit | c0dbba6688b0acd582b7d6d59574fdf50f950981 (patch) | |
tree | c58f3e399f7fbc522acbb5aba7aae40a6caa79fe /drivers/net/wireless/mwifiex/usb.c | |
parent | b49f639f841cf19cc7a8737c836210d4fa0baa76 (diff) | |
download | linux-c0dbba6688b0acd582b7d6d59574fdf50f950981.tar.gz linux-c0dbba6688b0acd582b7d6d59574fdf50f950981.tar.bz2 linux-c0dbba6688b0acd582b7d6d59574fdf50f950981.zip |
mwifiex: cancel pending commands during host sleep
Sometimes we may end up downloading other commands when host
sleep is configured. This patch makes sure that pending
commands are cancelled and we stop queueing further commands
during host sleep.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/usb.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/usb.c b/drivers/net/wireless/mwifiex/usb.c index ae30c390ebd3..edbe4aff00d8 100644 --- a/drivers/net/wireless/mwifiex/usb.c +++ b/drivers/net/wireless/mwifiex/usb.c @@ -459,6 +459,7 @@ static int mwifiex_usb_suspend(struct usb_interface *intf, pm_message_t message) * 'suspended' state and a 'disconnect' one. */ adapter->is_suspended = true; + adapter->hs_enabling = false; if (atomic_read(&card->rx_cmd_urb_pending) && card->rx_cmd.urb) usb_kill_urb(card->rx_cmd.urb); |