aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ibss.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/ibss.c')
-rw-r--r--net/mac80211/ibss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index 4f7a54518be4..6030e003180c 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -784,14 +784,14 @@ void ieee80211_ibss_notify_scan_completed(struct ieee80211_local *local)
784{ 784{
785 struct ieee80211_sub_if_data *sdata; 785 struct ieee80211_sub_if_data *sdata;
786 786
787 rcu_read_lock(); 787 mutex_lock(&local->iflist_mtx);
788 list_for_each_entry_rcu(sdata, &local->interfaces, list) { 788 list_for_each_entry(sdata, &local->interfaces, list) {
789 if (sdata->vif.type != NL80211_IFTYPE_ADHOC) 789 if (sdata->vif.type != NL80211_IFTYPE_ADHOC)
790 continue; 790 continue;
791 sdata->u.ibss.last_scan_completed = jiffies; 791 sdata->u.ibss.last_scan_completed = jiffies;
792 ieee80211_sta_find_ibss(sdata); 792 ieee80211_sta_find_ibss(sdata);
793 } 793 }
794 rcu_read_unlock(); 794 mutex_unlock(&local->iflist_mtx);
795} 795}
796 796
797ieee80211_rx_result 797ieee80211_rx_result