mac80211: do not queue work after suspend in the dynamic ps timer
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 27 Jul 2009 15:38:25 +0000 (08:38 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Jul 2009 19:19:38 +0000 (15:19 -0400)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c

index aca22b00b6a327873ee5ffc5a443ae541fdab5ed..07e7e41816be31cdd210f0dca41219525624c22b 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);