diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2014-03-26 06:01:20 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-03-27 22:20:06 +0400 |
commit | c0dbba6688b0acd582b7d6d59574fdf50f950981 (patch) | |
tree | c58f3e399f7fbc522acbb5aba7aae40a6caa79fe /drivers/net/wireless/mwifiex/sta_ioctl.c | |
parent | b49f639f841cf19cc7a8737c836210d4fa0baa76 (diff) | |
download | linux-c0dbba6688b0acd582b7d6d59574fdf50f950981.tar.xz |
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/sta_ioctl.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_ioctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c index 33170af150f6..2a9cfd563a07 100644 --- a/drivers/net/wireless/mwifiex/sta_ioctl.c +++ b/drivers/net/wireless/mwifiex/sta_ioctl.c @@ -508,6 +508,9 @@ int mwifiex_enable_hs(struct mwifiex_adapter *adapter) memset(&hscfg, 0, sizeof(struct mwifiex_ds_hs_cfg)); hscfg.is_invoke_hostcmd = true; + adapter->hs_enabling = true; + mwifiex_cancel_all_pending_cmd(adapter); + if (mwifiex_set_hs_params(mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_STA), HostCmd_ACT_GEN_SET, MWIFIEX_SYNC_CMD, |