Explorar o código

mac80211: do not queue work after suspend in the dynamic ps timer

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Luis R. Rodriguez %!s(int64=16) %!d(string=hai) anos
pai
achega
78f1a8b758
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/mac80211/mlme.c

+ 1 - 1
net/mac80211/mlme.c

@@ -721,7 +721,7 @@ void ieee80211_dynamic_ps_timer(unsigned long data)
 {
 {
 	struct ieee80211_local *local = (void *) data;
 	struct ieee80211_local *local = (void *) data;
 
 
-	if (local->quiescing)
+	if (local->quiescing || local->suspended)
 		return;
 		return;
 
 
 	queue_work(local->hw.workqueue, &local->dynamic_ps_enable_work);
 	queue_work(local->hw.workqueue, &local->dynamic_ps_enable_work);