<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi,</FONT> </DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;Please find below answers for 
your queries.</FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>1)&nbsp;What&nbsp;wifi&nbsp;driver/version,&nbsp;and&nbsp;what&nbsp;kernel&nbsp;version? 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;Driver: TI driver, Kernel: 
2.6.24-16-generic</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>2)&nbsp;what&nbsp;version&nbsp;of&nbsp;wpa_supplicant?&nbsp;&nbsp;Do&nbsp;you&nbsp;have&nbsp;any&nbsp;custom&nbsp;patches? 
<BR>&nbsp;&nbsp;I am using wpa_supplicant-0.5.11, I have following modification 
in supplicant.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;In ctrl_iface.c ----&gt; 
wpa_supplicant_ctrl_iface_scan_results() ------&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;if(wpa_s-&gt;scan_results != 
NULL)</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;{</FONT></DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;os_free(wpa_s-&gt;scan_results);</FONT></DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wpa_s-&gt;scan_results = 
NULL;</FONT></DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wpa_s-&gt;num_scan_results 
= 0;</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;Since I wanted wpa_supplicant to always 
get latest scan result from driver. I added above check. Also I am not using 
wpa_supplicant for 'scan'. I am using it only to get 'scan_result'. For scanning 
I am using WEXT ioctl.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR><FONT 
face=Arial 
size=2>3)&nbsp;What&nbsp;wpa_supplicant&nbsp;driver&nbsp;are&nbsp;you&nbsp;using,&nbsp;wext,&nbsp;a&nbsp;custom&nbsp;one,&nbsp;...? 
</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;I am using -Dwext.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Following is my wpa_supplicant config file for 
WPA-TKIP</FONT></DIV>
<DIV><FONT face=Arial 
size=2>-----------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>ctrl_interface=/var/run/wpa_supplicant</FONT></DIV>
<DIV><FONT face=Arial size=2>ap_scan=2</FONT></DIV>
<DIV><FONT face=Arial size=2>network={</FONT></DIV>
<DIV><FONT face=Arial size=2>ssid="testap" &nbsp;//ap name changed</FONT></DIV>
<DIV><FONT face=Arial size=2>proto=WPA</FONT></DIV>
<DIV><FONT face=Arial size=2>key_mgmt=WPA-PSK</FONT></DIV>
<DIV><FONT face=Arial size=2>pairwise=TKIP &nbsp;// using pairwise=TKIP CCMP for 
WPA-CCMP</FONT></DIV>
<DIV><FONT face=Arial size=2>group=TKIP &nbsp;&nbsp;&nbsp;&nbsp;// using 
group=TKIP CCMP for WPA-CCMP</FONT></DIV>
<DIV><FONT face=Arial size=2>psk="testtest"</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial 
size=2>----------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Please let me know what is the issue 
here.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-Raghu</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Dan Williams" &lt;</FONT><A 
href="mailto:dcbw@redhat.com"><FONT face=Arial 
size=2>dcbw@redhat.com</FONT></A><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>To: "Raghavendra" &lt;</FONT><A 
href="mailto:s.raghu@samsung.com"><FONT face=Arial 
size=2>s.raghu@samsung.com</FONT></A><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>Cc: &lt;</FONT><A 
href="mailto:hostap@lists.shmoo.com"><FONT face=Arial 
size=2>hostap@lists.shmoo.com</FONT></A><FONT face=Arial 
size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Friday, September 18, 2009 10:53 
PM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: Re: wpa_supplicant failed to 
associate</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial 
size=2>&gt; On Fri, 2009-09-18 at 21:28 +0530, Raghavendra wrote:<BR>&gt;&gt; Hi 
All,<BR>&gt;&gt;&nbsp; <BR>&gt;&gt;&nbsp;&nbsp;&nbsp; <BR>&gt;&gt;&nbsp;&nbsp; I 
am getting following error while connecting to AP.<BR>&gt;&gt;&nbsp; 
<BR>&gt;&gt; 
--------------------------------------------------------------------------------------<BR>&gt;&gt; 
Trying to associate with SSID 'testap'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // ap name 
changed<BR>&gt;&gt; <BR>&gt;&gt; Association request to the driver 
failed<BR>&gt;&gt; <BR>&gt;&gt; CTRL-EVENT-DISCONNECTED - Disconnect event - 
remove keys<BR>&gt;&gt; <BR>&gt;&gt; Associated with 
00:1d:7e:0e:3f:54<BR>&gt;&gt; <BR>&gt;&gt; WPA: IE in 3/4 msg does not match 
with IE in Beacon/ProbeResp<BR>&gt;&gt; (src=00:1d:7e:0e:3f:54)<BR>&gt;&gt; 
<BR>&gt;&gt; WPA: WPA IE in Beacon/ProbeResp - hexdump(len=24): dd 16 00 50 f2 
01<BR>&gt;&gt; 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02<BR>&gt;&gt; 
<BR>&gt;&gt; WPA: WPA IE in 3/4 msg - hexdump(len=24): dd 16 00 50 f2 01 01 00 
00<BR>&gt;&gt; 50 f2 04 01 00 00 50 f2 04 01 00 00 50 f2 02<BR>&gt;&gt; 
<BR>&gt;&gt; CTRL-EVENT-DISCONNECTED - Disconnect event - remove 
keys<BR>&gt;&gt; <BR>&gt;&gt; Authentication with 00:00:00:00:00:00 timed 
out.<BR>&gt;&gt; <BR>&gt;&gt; 
---------------------------------------------------------------------------------------------------------------------------------------<BR>&gt;&gt; 
<BR>&gt;&gt;&nbsp; <BR>&gt;&gt; <BR>&gt;&gt; scenario:<BR>&gt;&gt; <BR>&gt;&gt; 
1. connect and disconnect with WPA-TKIP - success<BR>&gt;&gt; <BR>&gt;&gt; 2. 
then try to connect with WPA-CCMP - failed<BR>&gt;&gt; <BR>&gt;&gt; or 
<BR>&gt;&gt; <BR>&gt;&gt; 1. connect and disconnect with WPA-CCMP - 
success<BR>&gt;&gt; <BR>&gt;&gt; 2. then try to connect with WPA-TKIP - 
failed<BR>&gt; <BR>&gt; It could be many things...&nbsp; a few questions 
first:<BR>&gt; <BR>&gt; 1) What wifi driver/version, and what kernel 
version?<BR>&gt; <BR>&gt; 2) what version of wpa_supplicant?&nbsp; Do you have 
any custom patches?<BR>&gt; <BR>&gt; 3) What wpa_supplicant driver are you 
using, wext, a custom one, ...?<BR>&gt; <BR>&gt; One theory is that the kernel 
driver itself isn't properly resetting the<BR>&gt; state when the new 
configuration for SIOCSIWENCODEEXT comes in.&nbsp; The<BR>&gt; message 
"Association request to the driver failed" *could* indicate a<BR>&gt; driver 
bug, but it's also reported when the driver just doesn't support<BR>&gt; some of 
the less-necessary commands.&nbsp; Giving the details above will help<BR>&gt; 
diagnose that.<BR>&gt; <BR>&gt; Dan<BR>&gt;</FONT></BODY></HTML>