The person that submitted this patch is my hero. I&#39;ve been battling with Android to get reconnections working but it will fail after associating. This is the reason - Android&#39;s WiFi manager will ifdown the interface after disconnection. I could not find the error and even bugged the manufacturer for a defective wext driver.<br>
<br>Thanks a million. Seriously, you are awesome!<br><br><div class="gmail_quote">On Tue, Dec 8, 2009 at 3:34 PM, Jouni Malinen <span dir="ltr">&lt;<a href="mailto:j@w1.fi">j@w1.fi</a>&gt;</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 Mon, Dec 07, 2009 at 02:25:15PM -0800, Dmitry Shmidt wrote:<br>
<br>
&gt; You are right in general. But there are several scenarios where it is<br>
&gt; just easier to control interface<br>
&gt; from the wpa_supplicant driver layer itself.<br>
&gt; For example, you&#39;ve associated, connected and got IP by dhcp client.<br>
&gt; You were disassociated, lost connection and network manager turned off<br>
&gt; interface to prevent trying to access it.<br>
&gt; Then you are trying to reassociate and key exchange will fail.<br>
<br>
</div>If a network manager turned off the interface, why would it not turn it<br>
on when the connection is supposed to be used? I would assume there was<br>
a reason for setting the interface down in this case and it does not<br>
sound like a good idea for wpa_supplicant to just turn it back on.<br>
<div class="im"><br>
&gt; My point is that relying on network manager to keep interface in<br>
&gt; proper state may cause wpa_supplicant to<br>
&gt; fail to complete association.<br>
<br>
</div>I would be fine with making wpa_supplicant not try to associate if the<br>
interface is set down while wpa_supplicant is running (and then<br>
re-enable wpa_supplicant when the interface is set up again).<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">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>