mwifiex: correction in wakeup timer handling
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>
This commit is contained in:
parent
21b39ddb5b
commit
ee6f0dd8a8
|
@ -312,8 +312,7 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv)
|
||||||
adapter->ps_state = PS_STATE_AWAKE;
|
adapter->ps_state = PS_STATE_AWAKE;
|
||||||
adapter->pm_wakeup_card_req = false;
|
adapter->pm_wakeup_card_req = false;
|
||||||
adapter->pm_wakeup_fw_try = false;
|
adapter->pm_wakeup_fw_try = false;
|
||||||
mod_timer(&adapter->wakeup_timer,
|
del_timer_sync(&adapter->wakeup_timer);
|
||||||
jiffies + (HZ*3));
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!mwifiex_send_null_packet
|
if (!mwifiex_send_null_packet
|
||||||
|
|
Loading…
Reference in New Issue