mwifiex: correction in sleep confirm command sequence number
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 26 Mar 2014 02:01:19 +0000 (19:01 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Mar 2014 18:20:06 +0000 (14:20 -0400)
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>
drivers/net/wireless/mwifiex/cmdevt.c

index b41155829220601cf1a8e894e48eb2955126dece..cc81fcd35959331ec24c996bed6a336aaa08e6a3 100644 (file)
@@ -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 =