<!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> Please find below answers for
your queries.</FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>1) What wifi driver/version, and what kernel version?
<BR> Driver: TI driver, Kernel:
2.6.24-16-generic</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>2) what version of wpa_supplicant? Do you have any custom patches?
<BR> I am using wpa_supplicant-0.5.11, I have following modification
in supplicant.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> In ctrl_iface.c ---->
wpa_supplicant_ctrl_iface_scan_results() ------></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> if(wpa_s->scan_results !=
NULL)</FONT></DIV>
<DIV><FONT face=Arial size=2> {</FONT></DIV>
<DIV><FONT face=Arial
size=2> os_free(wpa_s->scan_results);</FONT></DIV>
<DIV><FONT face=Arial
size=2> wpa_s->scan_results =
NULL;</FONT></DIV>
<DIV><FONT face=Arial
size=2> wpa_s->num_scan_results
= 0;</FONT></DIV>
<DIV><FONT face=Arial size=2> }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 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) What wpa_supplicant driver are you using, wext, a custom one, ...?
</FONT></DIV>
<DIV><FONT face=Arial size=2> I am using -Dwext.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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" //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 // using pairwise=TKIP CCMP for
WPA-CCMP</FONT></DIV>
<DIV><FONT face=Arial size=2>group=TKIP // 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> </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> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-Raghu</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Dan Williams" <</FONT><A
href="mailto:dcbw@redhat.com"><FONT face=Arial
size=2>dcbw@redhat.com</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>To: "Raghavendra" <</FONT><A
href="mailto:s.raghu@samsung.com"><FONT face=Arial
size=2>s.raghu@samsung.com</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Cc: <</FONT><A
href="mailto:hostap@lists.shmoo.com"><FONT face=Arial
size=2>hostap@lists.shmoo.com</FONT></A><FONT face=Arial
size=2>></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>> On Fri, 2009-09-18 at 21:28 +0530, Raghavendra wrote:<BR>>> Hi
All,<BR>>> <BR>>> <BR>>> I
am getting following error while connecting to AP.<BR>>>
<BR>>>
--------------------------------------------------------------------------------------<BR>>>
Trying to associate with SSID 'testap' // ap name
changed<BR>>> <BR>>> Association request to the driver
failed<BR>>> <BR>>> CTRL-EVENT-DISCONNECTED - Disconnect event -
remove keys<BR>>> <BR>>> Associated with
00:1d:7e:0e:3f:54<BR>>> <BR>>> WPA: IE in 3/4 msg does not match
with IE in Beacon/ProbeResp<BR>>> (src=00:1d:7e:0e:3f:54)<BR>>>
<BR>>> WPA: WPA IE in Beacon/ProbeResp - hexdump(len=24): dd 16 00 50 f2
01<BR>>> 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02<BR>>>
<BR>>> WPA: WPA IE in 3/4 msg - hexdump(len=24): dd 16 00 50 f2 01 01 00
00<BR>>> 50 f2 04 01 00 00 50 f2 04 01 00 00 50 f2 02<BR>>>
<BR>>> CTRL-EVENT-DISCONNECTED - Disconnect event - remove
keys<BR>>> <BR>>> Authentication with 00:00:00:00:00:00 timed
out.<BR>>> <BR>>>
---------------------------------------------------------------------------------------------------------------------------------------<BR>>>
<BR>>> <BR>>> <BR>>> scenario:<BR>>> <BR>>>
1. connect and disconnect with WPA-TKIP - success<BR>>> <BR>>> 2.
then try to connect with WPA-CCMP - failed<BR>>> <BR>>> or
<BR>>> <BR>>> 1. connect and disconnect with WPA-CCMP -
success<BR>>> <BR>>> 2. then try to connect with WPA-TKIP -
failed<BR>> <BR>> It could be many things... a few questions
first:<BR>> <BR>> 1) What wifi driver/version, and what kernel
version?<BR>> <BR>> 2) what version of wpa_supplicant? Do you have
any custom patches?<BR>> <BR>> 3) What wpa_supplicant driver are you
using, wext, a custom one, ...?<BR>> <BR>> One theory is that the kernel
driver itself isn't properly resetting the<BR>> state when the new
configuration for SIOCSIWENCODEEXT comes in. The<BR>> message
"Association request to the driver failed" *could* indicate a<BR>> driver
bug, but it's also reported when the driver just doesn't support<BR>> some of
the less-necessary commands. Giving the details above will help<BR>>
diagnose that.<BR>> <BR>> Dan<BR>></FONT></BODY></HTML>