|
@@ -58,7 +58,6 @@ void wl1251_ps_elp_sleep(struct wl1251 *wl)
|
|
unsigned long delay;
|
|
unsigned long delay;
|
|
|
|
|
|
if (wl->psm) {
|
|
if (wl->psm) {
|
|
- cancel_delayed_work(&wl->elp_work);
|
|
|
|
delay = msecs_to_jiffies(ELP_ENTRY_DELAY);
|
|
delay = msecs_to_jiffies(ELP_ENTRY_DELAY);
|
|
ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, delay);
|
|
ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, delay);
|
|
}
|
|
}
|
|
@@ -69,6 +68,9 @@ int wl1251_ps_elp_wakeup(struct wl1251 *wl)
|
|
unsigned long timeout, start;
|
|
unsigned long timeout, start;
|
|
u32 elp_reg;
|
|
u32 elp_reg;
|
|
|
|
|
|
|
|
+ if (delayed_work_pending(&wl->elp_work))
|
|
|
|
+ cancel_delayed_work(&wl->elp_work);
|
|
|
|
+
|
|
if (!wl->elp)
|
|
if (!wl->elp)
|
|
return 0;
|
|
return 0;
|
|
|
|
|