<HTML><HEAD><BODY><br>Hi,
<p> Please find below answers for your queries/doubts. </p>
<p>1) What wifi driver/version, and what kernel version?
<br>
Driver: TI driver, Kernel: 2.6.24-16-generic</p>
<p><br>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.</p>
<p> In ctrl_iface.c ----> wpa_supplicant_ctrl_iface_scan_results()
------></p>
<p> if(wpa_s->scan_results != NULL)</p>
<p> {</p>
<p> os_free(wpa_s->scan_results);</p>
<p> wpa_s->scan_results =
NULL;</p>
<p> wpa_s->num_scan_results
= 0;</p>
<p> }</p>
<p> 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',
using it only to get 'scan_result'. For scanning I am using WEXT ioctl.</p>
<p><br>3) What wpa_supplicant driver are you using, wext, a custom one, ...?
<br>
</p>
<p> I am using -Dwext.</p>
<p> </p>
<p>Following is my wpa_supplicant config file for WPA-TKIP</p>
<p>ctrl_interface=/var/run/wpa_supplicant</p>
<p>ap_scan=2</p>
<p>network={</p>
<p>ssid="testap" //ap name changed</p>
<p>proto=WPA</p>
<p>key_mgmt=WPA-PSK</p>
<p>pairwise=TKIP // using pairwise=TKIP CCMP for WPA-CCMP</p>
<p>group=TKIP // using group=TKIP CCMP for WPA-CCMP</p>
<p>psk="testtest"</p>
<p>}</p>
<p> </p>
<p>Please let me know what is the issue here.</p>
<p> </p>
<p>-Raghu</p>
<p> </p><br><br>------- <b>Original Message</b> -------<br><b>Sender</b> : Dan Williams<dcbw@redhat.com><br><b>Date</b> : Sep 19, 2009 02:23 (GMT+09:00)<br><b>Title</b> : Re: wpa_supplicant failed to associate<br><br>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>
<br><p> </p><p> </p><!--SP:s.raghu-->
<p>-Raghu</p><!--s.raghu:EP--><p> </p><p> </p></BODY></HTML>