mwifiex: correction in wakeup timer handling
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 30 Jan 2015 08:40:04 +0000 (00:40 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Feb 2015 13:28:52 +0000 (15:28 +0200)
Wakeup timer is in sync with 'pm_wakeup_fw_try' flag. It
has been started instead of cancelling at one place. This
patch corrects it.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/sta_event.c

index c03b82c2fe1c73015d4806a395b04c3a3a2f686d..80ffe74124969a2410e2a1ce382d0f521f035238 100644 (file)
@@ -312,8 +312,7 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv)
                                        adapter->ps_state = PS_STATE_AWAKE;
                                        adapter->pm_wakeup_card_req = false;
                                        adapter->pm_wakeup_fw_try = false;
-                                       mod_timer(&adapter->wakeup_timer,
-                                                 jiffies + (HZ*3));
+                                       del_timer_sync(&adapter->wakeup_timer);
                                        break;
                                }
                                if (!mwifiex_send_null_packet