mac80211: do not queue work after suspend in the dynamic ps timer
[linux-2.6.git] / net / mac80211 / mlme.c
index aca22b0..07e7e41 100644 (file)
@@ -721,7 +721,7 @@ void ieee80211_dynamic_ps_timer(unsigned long data)
 {
        struct ieee80211_local *local = (void *) data;
 
-       if (local->quiescing)
+       if (local->quiescing || local->suspended)
                return;
 
        queue_work(local->hw.workqueue, &local->dynamic_ps_enable_work);