aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2014-03-25 22:01:19 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-03-27 14:20:06 -0400
commitb49f639f841cf19cc7a8737c836210d4fa0baa76 (patch)
tree17fad6088d91568109a6eb756878de2e958be40c
parentf5e8560ee0f10e7daf4bc16caf7c50bb30fced9c (diff)
mwifiex: correction in sleep confirm command sequence number
Incremented sequence number was not being used for SLEEP confirm command. This patch fixes the issue. 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>
-rw-r--r--drivers/net/wireless/mwifiex/cmdevt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/cmdevt.c b/drivers/net/wireless/mwifiex/cmdevt.c
index b41155829220..cc81fcd35959 100644
--- a/drivers/net/wireless/mwifiex/cmdevt.c
+++ b/drivers/net/wireless/mwifiex/cmdevt.c
@@ -277,11 +277,11 @@ static int mwifiex_dnld_sleep_confirm_cmd(struct mwifiex_adapter *adapter)
277 277
278 priv = mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY); 278 priv = mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY);
279 279
280 adapter->seq_num++;
280 sleep_cfm_buf->seq_num = 281 sleep_cfm_buf->seq_num =
281 cpu_to_le16((HostCmd_SET_SEQ_NO_BSS_INFO 282 cpu_to_le16((HostCmd_SET_SEQ_NO_BSS_INFO
282 (adapter->seq_num, priv->bss_num, 283 (adapter->seq_num, priv->bss_num,
283 priv->bss_type))); 284 priv->bss_type)));
284 adapter->seq_num++;
285 285
286 if (adapter->iface_type == MWIFIEX_USB) { 286 if (adapter->iface_type == MWIFIEX_USB) {
287 sleep_cfm_tmp = 287 sleep_cfm_tmp =