diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index c7860d0450dd..f7beb12abde2 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -3665,8 +3665,10 @@ void ieee80211_mlme_notify_scan_completed(struct ieee80211_local *local) | |||
3665 | 3665 | ||
3666 | /* Restart STA timers */ | 3666 | /* Restart STA timers */ |
3667 | rcu_read_lock(); | 3667 | rcu_read_lock(); |
3668 | list_for_each_entry_rcu(sdata, &local->interfaces, list) | 3668 | list_for_each_entry_rcu(sdata, &local->interfaces, list) { |
3669 | ieee80211_restart_sta_timer(sdata); | 3669 | if (ieee80211_sdata_running(sdata)) |
3670 | ieee80211_restart_sta_timer(sdata); | ||
3671 | } | ||
3670 | rcu_read_unlock(); | 3672 | rcu_read_unlock(); |
3671 | } | 3673 | } |
3672 | 3674 | ||