Hi Jouni.<br><br>It is hard to catch "in purpose" with the log, so I'll try to explain the case.<br><br>Network manager is issuing scan request through API (it does it periodically for different reasons).<br>
Meanwhile wpa_supplicant is in the "process" of association.<br>Driver got scan request and immediately association request.<br>Driver FW may (and in our case will) cancel previous scan request.<br>Wlan will be associated, BUT wpa_s->scanning will be set to 1 and will be left as is.<br>
Network manager may be confused that it didn't get SCAN_RESULTS and didn't get wpa_s->scanning change<br>notification.<br><br>Thanks,<br><br>Dmitry<br><br><div class="gmail_quote">On Sat, Mar 6, 2010 at 12:56 AM, Jouni Malinen <span dir="ltr"><<a href="mailto:j@w1.fi">j@w1.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Fri, Feb 26, 2010 at 10:49:08AM -0800, Dmitry Shmidt wrote:<br>
<br>
> There is a situation when scan was scheduled but during association it was<br>
> canceled.<br>
> And we need to change wpa_s->scanning var and notify network manager.<br>
<br>
</div>Could you please describe the case where this would be needed in more<br>
detail or send me a debug log (with -ddt on command line) showing a<br>
case where the scanning is indicated, but not cleared?<br>
<br>
The code here is canceling the pending scan _request_, not the scan<br>
itself and as such, wpa_supplicant_notify_scanning(wpa_s, 1) should not<br>
have been called yet and as such, there should be no need to call<br>
wpa_supplicant_notify_scanning(wpa_s, 0) either.<br>
<div class="im"><br>
--<br>
Jouni Malinen PGP id EFC895FA<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">HostAP mailing list<br>
<a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
</div></div></blockquote></div><br>