2011-06-09 20:40:10

by Frederic

[permalink] [raw]
Subject: Problem with dhcp client *only* with encryption...

My setup:

An ARM board running 2.6.27.9 kernel, compat-wireless-2011-05-24, iw-0.9.22,
libnl-1.1

If I set my AP with no encryption, I can connect with "iw wlan0 connect
wireless" fine then use "udhcpc -i wlan0" to grab an IP address and ping the AP,
it works.

If I set the AP with WEP, it seems that "iw wlan0 connect wireless keys 0:abcde
d:1:0011223344" works, I can see the MAC address in the AP device list, but
udhcpc is unable to take an IP address, it only sends “discover” packets but
never see an answer. I run tcpdump on the AP and I do not see the DHCP request
AFAIK.

I then compiled openssl-1.0.0d and wpa_supplicant-0.7.3 and set the AP in
WPA-TKIP and WPA2-AES ; connections, again, seem to work RF wise, but udhcpc
still does not work and I cannot have an IP address.

Setting a static IP address does not make ping work too.

Anyone has a clue as to why dhcp request, or it seems, any traffic, fail only
when using encryption?

Thanks in advance, Frédéric.