From: Amitkumar Karwar Date: Wed, 26 Mar 2014 02:01:19 +0000 (-0700) Subject: mwifiex: correction in sleep confirm command sequence number X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b49f639f841cf19cc7a8737c836210d4fa0baa76;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- 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) priv = mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY); + adapter->seq_num++; sleep_cfm_buf->seq_num = cpu_to_le16((HostCmd_SET_SEQ_NO_BSS_INFO (adapter->seq_num, priv->bss_num, priv->bss_type))); - adapter->seq_num++; if (adapter->iface_type == MWIFIEX_USB) { sleep_cfm_tmp =