aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 4d383a93ea73..e06dbbf8cb4c 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -3531,8 +3531,10 @@ void ieee80211_mlme_notify_scan_completed(struct ieee80211_local *local)
3531 3531
3532 /* Restart STA timers */ 3532 /* Restart STA timers */
3533 rcu_read_lock(); 3533 rcu_read_lock();
3534 list_for_each_entry_rcu(sdata, &local->interfaces, list) 3534 list_for_each_entry_rcu(sdata, &local->interfaces, list) {
3535 ieee80211_restart_sta_timer(sdata); 3535 if (ieee80211_sdata_running(sdata))
3536 ieee80211_restart_sta_timer(sdata);
3537 }
3536 rcu_read_unlock(); 3538 rcu_read_unlock();
3537} 3539}
3538 3540