On Tue, Sep 9, 2008 at 1:24 AM, Tomas Winkler <tomasw@xxxxxxxxx> wrote: > On Mon, Sep 8, 2008 at 9:13 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: >> On Mon, 2008-09-08 at 19:53 +0300, Tomas Winkler wrote: >> >>> The bug is that scan can be triggered in STA and IBSS internally. If >>> you request scan from the application (iwlist) while >>> internally scan is running application won't fetch scan results >>> because the -EBUSY is returned on scan request. >> >> But -EBUSY won't be returned if that same interface is already scanning, >> then 0 will be returned, so I don't understand? > > Me either, but empirically the fix from Esti cured the problem. The > problem is seen only in IBSS. Will dig into this tomorrow. Okay so here is the scenario. Iwlwifi reject scan that is triggered withing fixed period after association to leave time to finish EAPOL exchange. We never hit the problem in STA mode because of this code if (sdata->vif.type != IEEE80211_IF_TYPE_STA) return ieee80211_sta_start_scan(dev, ssid, ssid_len); which makes it go through the work queue, just pure timing luck. I will remove this delay for IBSS, there is no association and no 1X is going on. For BSS I suggest to enforce similar delay already mac80211, iwlwifi I just return empty scan completion and buffered results will be returned. Tomas -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html