I monitored traffic on wireshark, AP is not sending dissociate frame. It is the driver/card at wpa_supplicant end initiating the the dissociate. <br><br>One observation is when i run command &quot;iwconfig wlan0&quot; while wpa_supplicant is running , i see the frequecy/channel varying. My AP works at channel 6 so i think station card should be tuned to same channel, but instead i see it changing continuosly.<br>
<br> Is it a correct combination of wlan0 and wext to be used to make it work? or i should try madwifi instead?<br><br><br>- Paresh<br><br><div class="gmail_quote">On Thu, May 21, 2009 at 12:51 AM, Dan Williams <span dir="ltr">&lt;<a href="mailto:dcbw@redhat.com">dcbw@redhat.com</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 Wed, 2009-05-20 at 17:34 +0530, Paresh Sawant wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;ve built wpa_supplicant on Linux (kernel 2.6.25-14.fc9.i686), with<br>
&gt; wext driver, and runing it on netgear wg311T(atheros AR5212). I start<br>
&gt; the wpa_supplicant with -i wlan0 and -D wext, but it fails to do the<br>
&gt; connection with WPA2-PSK configured AP. wireshark shows me that it<br>
&gt; reaches till 2/4 of 4-way-hshake. But then it seems to receive<br>
&gt; dissociate event from the hardware/driver. I&#39;m passing correct key for<br>
&gt; PSK auth.<br>
<br>
</div>You&#39;ll have to find out from the driver why the disassociation is<br>
happening.  It might also be triggered by the AP itself, so you could<br>
also sniff packets from the air to figure out if the AP has<br>
disassociated you for some reason.<br>
<br>
Dan<br>
<div><div></div><div class="h5"><br>
&gt; Following is the log message -<br>
&gt;<br>
&gt; /******************debug<br>
&gt; log****************************************************<br>
&gt;<br>
&gt; State: ASSOCIATED -&gt; DISCONNECTED<br>
&gt; wpa_driver_wext_set_operstate: operstate 0-&gt;0 (DORMANT)<br>
&gt; WEXT: Operstate: linkmode=-1, operstate=5<br>
&gt; EAPOL: External notification - portEnabled=0<br>
&gt; EAPOL: SUPP_PAE entering state DISCONNECTED<br>
&gt; EAPOL: SUPP_BE entering state INITIALIZE<br>
&gt; EAPOL: External notification - portValid=0<br>
&gt; EAPOL: External notification - EAP success=0<br>
&gt; RX EAPOL from 00:1d:7e:f4:d7:07<br>
&gt; RX EAPOL - hexdump(len=121): 02 03 00 75 02 00 8a 00 10 00 00 00 00 00<br>
&gt; 00 00 00 fd cc 9e 98 1d 47 b3 25 9a 6d 8d fd 3d 71 55 8e e4 ef 5f ea<br>
&gt; 9a 08 21 b1 be d0 20 55 2d 4a c7 a9 00 00 00 00 00 00 00 00 00 00 00<br>
&gt; 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
&gt; 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 16 dd 14 00 0f ac 04 b0<br>
&gt; 2a ff fe db bc a9 c5 e2 9d 88 ae d1 df 84 ba<br>
&gt; Setting authentication timeout: 10 sec 0 usec<br>
&gt; IEEE 802.1X RX: version=2 type=3 length=117<br>
&gt;   EAPOL-Key type=2<br>
&gt;   key_info 0x8a (ver=2 keyidx=0 rsvd=0 Pairwise Ack)<br>
&gt;   key_length=16 key_data_length=22<br>
&gt;   replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 00<br>
&gt;   key_nonce - hexdump(len=32): fd cc 9e 98 1d 47 b3 25 9a 6d 8d fd 3d<br>
&gt; 71 55 8e e4 ef 5f ea 9a 08 21 b1 be d0 20 55 2d 4a c7 a9<br>
&gt;   key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
&gt; 00 00<br>
&gt;   key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00<br>
&gt;   key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00<br>
&gt;   key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
&gt; 00 00<br>
&gt; WPA: RX EAPOL-Key - hexdump(len=121): 02 03 00 75 02 00 8a 00 10 00 00<br>
&gt; 00 00 00 00 00 00 fd cc 9e 98 1d 47 b3 25 9a 6d 8d fd 3d 71 55 8e e4<br>
&gt; ef 5f ea 9a 08 21 b1 be d0 20 55 2d 4a c7 a9 00 00 00 00 00 00 00 00<br>
&gt; 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
&gt; 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 16 dd 14 00 0f<br>
&gt; ac 04 b0 2a ff fe db bc a9 c5 e2 9d 88 ae d1 df 84 ba<br>
&gt; State: DISCONNECTED -&gt; 4WAY_HANDSHAKE<br>
&gt; WPA: RX message 1 of 4-Way Handshake from 00:1d:7e:f4:d7:07 (ver=2)<br>
&gt; RSN: msg 1/4 key data - hexdump(len=22): dd 14 00 0f ac 04 b0 2a ff fe<br>
&gt; db bc a9 c5 e2 9d 88 ae d1 df 84 ba<br>
&gt; RSN: PMKID from Authenticator - hexdump(len=16): b0 2a ff fe db bc a9<br>
&gt; c5 e2 9d 88 ae d1 df 84 ba<br>
&gt; RSN: no matching PMKID found<br>
&gt; WPA: Renewed SNonce - hexdump(len=32): d8 f1 69 54 1a e7 9f 46 16 b2<br>
&gt; b4 97 00 4b 1f 35 52 1d 9f 87 0a 49 fd df 46 70 4e d7 04 ec d9 bd<br>
&gt; WPA: PMK - hexdump(len=32): [REMOVED]<br>
&gt; WPA: PTK - hexdump(len=64): [REMOVED]<br>
&gt; WPA: WPA IE for msg 2/4 - hexdump(len=22): 30 14 01 00 00 0f ac 02 01<br>
&gt; 00 00 0f ac 04 01 00 00 0f ac 02 00 00<br>
&gt; WPA: Sending EAPOL-Key 2/4<br>
&gt; WPA: TX EAPOL-Key - hexdump(len=121): 01 03 00 75 02 01 0a 00 00 00 00<br>
&gt; 00 00 00 00 00 00 d8 f1 69 54 1a e7 9f 46 16 b2 b4 97 00 4b 1f 35 52<br>
&gt; 1d 9f 87 0a 49 fd df 46 70 4e d7 04 ec d9 bd 00 00 00 00 00 00 00 00<br>
&gt; 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
&gt; 00 63 b4 56 74 f3 18 fc f5 14 f4 64 57 d3 4e 2e 84 00 16 30 14 01 00<br>
&gt; 00 0f ac 02 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00<br>
&gt; RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])<br>
&gt; Wireless event: cmd=0x8b15 len=20<br>
&gt; Wireless event: new AP: 00:00:00:00:00:00<br>
&gt; WPA: 4-Way Handshake failed - pre-shared key may be incorrect<br>
&gt; Setting scan request: 0 sec 100000 usec<br>
&gt; Added BSSID 00:00:00:00:00:00 into blacklist<br>
&gt; CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys<br>
&gt; wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0<br>
&gt; wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0<br>
&gt; wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0<br>
&gt; wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0<br>
&gt; wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0<br>
&gt; ioctl[SIOCSIWENCODEEXT]: No such file or directory<br>
&gt; Driver did not support SIOCSIWENCODEEXT<br>
&gt; State: 4WAY_HANDSHAKE -&gt; DISCONNECTED<br>
&gt;<br>
&gt; /***********************************************end************************************************************/<br>
&gt;<br>
&gt;<br>
&gt; Thanks<br>
&gt; - Paresh<br>
</div></div>&gt; _______________________________________________<br>
&gt; HostAP mailing list<br>
&gt; <a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
&gt; <a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
<br>
</blockquote></div><br>