WPA Association with wext versus hostap

Ram ramprasad.rajendran at wipro.com
Fri Jun 1 01:34:19 EDT 2007


Aric D. Blumer wrote:
> I didn't see anything relating to this problem in bugzilla, so I'd like
> to bounce it off the list:
> 
> I have a D-Link DI-524 access point.  I am connecting to it with a
> Prism-based AmbiCom WL1100C-CF 802.11b card.  This is with Linux kernel
> version 2.6.15 on a PXA255-based handheld computer with wpa_supplicant
> 0.4.9.
> 
> If I do "wpa_supplicant  -d -D wext -i wlan0 -c
> /etc/wpa_supplicant.conf" it associates with the DI-524 just fine. 
> However, if I do "wpa_supplicant  -d -D hostap -i wlan0 -c
> /etc/wpa_supplicant.conf" it will not associate.  That last bit of info
> I see is:
> 
> wpa_driver_hostap_set_key: alg=TKIP key_idx=0 set_tx=1 seq_len=6 key_len=32
> State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
> EAPOL: startWhen --> 0
> EAPOL: SUPP_PAE entering state CONNECTING
> EAPOL: txStart
> WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
> 

I don't know if your problem is the same. I did try with a Dlink WI-524 
with WPA2-PSK as the authentication and wpa_supplicant 0.5.7

What I did notice was that the AP was sending EAPOL Key packets where 
key data length was not multiples of 8.

In other words, this piece of code

		if (keydatalen % 8) {
			wpa_printf(MSG_WARNING, "WPA: Unsupported "
				   "AES-WRAP len %d", keydatalen);
			return -1;
		}

in wpa_supplicant_decrypt_key_data() in wpa.c was failing.


> 
> It then times out and tries again.
> 
> Anyone have any idea why the wext wap_supplicant driver would work, and
> the hostap driver would not?
> 
> Thanks.
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap


-- 
ram



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com



More information about the HostAP mailing list