mac80211: fix ibss race
[linux-2.6.git] / net / mac80211 / ibss.c
index 812cbaba324f742c3500d425d58bd91b01a8352c..6eaf69823439d6dc93bbe51ab04699a888887488 100644 (file)
@@ -829,7 +829,7 @@ void ieee80211_ibss_notify_scan_completed(struct ieee80211_local *local)
                if (!sdata->u.ibss.ssid_len)
                        continue;
                sdata->u.ibss.last_scan_completed = jiffies;
-               ieee80211_sta_find_ibss(sdata);
+               mod_timer(&sdata->u.ibss.timer, 0);
        }
        mutex_unlock(&local->iflist_mtx);
 }