<div>Just to be sure&nbsp;I do not cause any confusion,&nbsp;the snapshot&nbsp;I used&nbsp;&nbsp;is : wpa_supplicant-0.5-2006-08-07.tar.gz </div>
<div><br>&nbsp;</div>
<div><span class="gmail_quote">On 8/21/06, <b class="gmail_sendername">Adrian Nistor</b> &lt;<a href="mailto:anistor@gmail.com">anistor@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>Hi, </div>
<div>sorry for the very late reply. In the attached ZIP file I included the config file and the output of the supplicant that demonstrates the issue.</div>
<div>It is very probable that you cannot reproduce this benaviour unless you use the same wireless card. Mine is a Sweex usb adapter based on the Ralink 2500 chipset. The issue also appeared with another 2 USB adapters from other manufacturers. 
</div>
<div>&nbsp;</div>
<div>I also included in the ZIP the two source files I modified in order to fix the defect. The sources are based on the snapshot published in 8-Aug-2006.</div>
<div>&nbsp;</div>
<div>I managed to clean up a little the code changes and&nbsp;I hope they are suitable for inclusion in the dev branch. Thank you!</div>
<div><br>Bye</div></div>
<div><span class="e" id="q_10d3166ed271be6e_1">
<div>&nbsp;</div>
<div><span class="gmail_quote">On 8/14/06, <b class="gmail_sendername">Jouni Malinen</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jkmaline@cc.hut.fi" target="_blank">jkmaline@cc.hut.fi</a>
&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Mon, Aug 14, 2006 at 11:13:47AM +0300, Adrian Nistor wrote:<br><br>&gt; I tracked the problem in the source code and it looks like media 
<br>&gt; connect/disconnect events are not properly<br>&gt; received by the supplicant for this kind of adapters (it works fine with the<br>&gt; one embeded in the notebook<br>&gt; but not with the one attached on USB). The output of the supplicant contains 
<br>&gt; a lot of these messages: &quot;NDIS: ignored event for another adapter&quot;.<br><br>Could you please send a wpa_supplicant debug file showing this?<br><br>&gt; In function wpa_driver_ndis_event_process() the name of the adapter from the 
<br>&gt; WMI event is compared to the<br>&gt; description of the adapter (obtained from winpcap?) and the event is ignored<br>&gt; if there is a mismatch.<br>&gt; The problem was found to be here; in some cases the description of the 
<br>&gt; adapter is not the same as the instance name in WMI<br>&gt; (depends on driver manufacturer).<br><br>Yes, I'm aware of this issue, but have not found an easy fix for it so<br>far (or well, have not been motivated enough to search for one since I 
<br>don't have a card that triggers this behavior ;-).<br><br>&gt; I propose a safer approach: modify<br>&gt; ndis_events.c to send the<br>&gt; name (UUID) of the interface (eg. {508692E1-7B72-43B7-ABBE-B2EAF2CDDCDE})<br>
&gt; with the event instead of the<br>&gt; instance name from WMI, also modify wpa_driver_ndis_event_process() to make<br>&gt; the comparison based on interface name<br>&gt; instead of adapter description.<br><br>This is indeed what I would have wanted to do.. 
<br><br>&gt; The only tricky issue here is to find the<br>&gt; UUID of the adapter when only the instance name from the WMI event is known.<br>&gt; I finally managed to write the code that does this via some WMI queries.<br>
&gt;<br>&gt; This solved the problem entirely in my case and worked with 3 different<br>&gt; brands of USB wireless cards.<br><br>That's great to hear!<br><br>&gt; Has anyone experienced the same problem? Any alternative solutions? 
<br><br>Probably someone has. I haven't of alternative solutions and anyway,<br>what you described above sounds like the best solution (well, assuming<br>the changes in WMI code were not horrible).<br><br>&gt; Currently my patch is quite dirty, but I can post it if somebody is 
<br>&gt; interrested in it (maybe it can be integrated in the dev branch).<br><br>Please do post it. If needed, I can clean it up,&nbsp;&nbsp;but anyway, I want to<br>get it merged into the development branch.<br><br>--<br>Jouni Malinen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PGP id EFC895FA 
<br>_______________________________________________<br>HostAP mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:HostAP@shmoo.com" target="_blank">HostAP@shmoo.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">
http://lists.shmoo.com/mailman/listinfo/hostap </a><br></blockquote></div><br></span></div><br clear="all"></blockquote></div><br>