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