From: Luis R. Rodriguez Date: Mon, 27 Jul 2009 15:38:25 +0000 (-0700) Subject: mac80211: do not queue work after suspend in the dynamic ps timer X-Git-Tag: v2.6.31-rc6~41^2~31^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78f1a8b758d57c2d2c9f3db7199cd30803854c82;p=platform%2Fkernel%2Flinux-3.10.git mac80211: do not queue work after suspend in the dynamic ps timer Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index aca22b0..07e7e41 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -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);