<div dir="ltr"><div class="gmail_default" style>The big difference in wpa_supplicant_fast_associate() right now is that it turns into a no-op if the selected network (from wpa_supplicant_pick_network()) doesn't match the ssid chosen in wpa_supplicant_select_network(). It didn't seem right to me for some other network to be connected if select_network was unambiguous. It's likely a non-concern for me, so I'll drop it in a v3.</div>
<div class="gmail_default" style><br></div><div class="gmail_default" style>--</div><div class="gmail_default" style>Paul</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 16, 2013 at 8:56 AM, Jouni Malinen <span dir="ltr"><<a href="mailto:j@w1.fi" target="_blank">j@w1.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Jan 16, 2013 at 06:59:14AM -0800, Paul Stewart wrote:<br>
> I considered wpas_select_network_from_last_scan(), but I wondered whether<br>
> the calls to wpa_supplicant_rsn_preauth_scan_results on old scan results or<br>
> everything in the "else" clause for "if (selected)" was valid in this case.<br>
> If you're okay with a hard-coded time limit like interworking_reconnect, I<br>
> can do that. Also let me know if you're unconcerned by any side effects<br>
> the rest of wpas_select_network_from_last_scan().<br>
<br>
</div>If there are undesired side effects from<br>
wpas_select_network_from_last_scan(), those need to be fixed for<br>
Interworking case anyway, so yes, I'd like to see a single mechanism to<br>
be used and any possible issues with it getting resolved. These two<br>
cases are pretty much identical in the sense that both of them may have<br>
run through a scan recently and could re-use information from it. The<br>
Interworking one is guaranteed to have run through a scan, but these can<br>
be handled with the same implementation with the use of that time limit.<br>
The actual time limit value could end up becoming a configurable<br>
parameter in the future, but a hard-coded limit would be fine as an<br>
initial step.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Jouni Malinen PGP id EFC895FA<br>
_______________________________________________<br>
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></div>