Skip to content

Commit

Permalink
mac80211: do not queue work after suspend in the dynamic ps timer
Browse files Browse the repository at this point in the history
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Jul 27, 2009
1 parent 082e708 commit 78f1a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 78f1a8b

Please sign in to comment.