Upgrading dhcpcd to the 3.0.x codestream prevents an address from being assigned over WPA2 wireless encryption using wpa_supplicant and hostap driver. Works fine with WEP and downgrading to 2.0.5-r1 fixes this problem. Packet captures are attached from 2.0.5-r1 & 3.0.8.
Created attachment 104684 [details] Packet capture from dhcpcd 2.0.5-r1 This is a successful address assignment
Created attachment 104685 [details] Packet capture from dhcpcd 3.0.8 This is the failed address assignment
Could you attach captures wireshark understands or tell me which tool to use on the currently attached captures? Thanks
Created attachment 104976 [details] Wireshark Capture from v2.0.5-r1 - SUCCESS
Created attachment 104977 [details] Wireshark Capture from v3.0.8 - FAILURE
I can't see anything wrong with that. Do other dhcp clients work? Specifically dhclient (net-misc/dhcp) and udhcpc (net-misc/udhcp).
udhcpc and dhclient both work without any problems. I don't know what else to provide...perhaps debugging output from 3.0.8? It's a strange problem in that 3.0.8 works OK with WEP encryption, just not WPA.
(In reply to comment #7) > udhcpc and dhclient both work without any problems. I don't know what else to > provide...perhaps debugging output from 3.0.8? Not really much more you can provide. Could you try with the option "-l -1" for an infinite lease time? If that fails to work, I'll provide a series of patches to make the DHCP request identical to dhcpcd-2 to see if that helps to track down the issue. > It's a strange problem in that > 3.0.8 works OK with WEP encryption, just not WPA. Yup, very strange. I know dhcpcd-3 works fine across my WPA at work, so it maybe something with the way we use the socket in conjuction with the way the driver handles WPA. You could try taking this to the hostap mailing list as they might be able to shed more light than I. I subscribe to it, so I can see your post and join the conversation if needed. http://lists.shmoo.com/mailman/listinfo/hostap
(In reply to comment #8) > (In reply to comment #7) > > udhcpc and dhclient both work without any problems. I don't know what else to > > provide...perhaps debugging output from 3.0.8? > > Not really much more you can provide. > Could you try with the option "-l -1" for an infinite lease time? > > If that fails to work, I'll provide a series of patches to make the DHCP > request identical to dhcpcd-2 to see if that helps to track down the issue. The infinite lease works okay with 3.0.8; the address that I previously obtained with 2.0.5-r1 was re-assigned correctly. > > It's a strange problem in that > > 3.0.8 works OK with WEP encryption, just not WPA. > > Yup, very strange. > I know dhcpcd-3 works fine across my WPA at work, so it maybe something with > the way we use the socket in conjuction with the way the driver handles WPA. > > You could try taking this to the hostap mailing list as they might be able to > shed more light than I. I subscribe to it, so I can see your post and join the > conversation if needed. > > http://lists.shmoo.com/mailman/listinfo/hostap I submitted a message to the hostap list with some details of the problem.
(In reply to comment #9) > The infinite lease works okay with 3.0.8; the address that I previously > obtained with 2.0.5-r1 was re-assigned correctly. Does it work if you specify other lease times?
It does work with a specified lease time. The DHCP server (the router) is a Linksys WRT54GX v2 with firmware 2.00.19. You asked (in the hostap list) about capturing traffic from the other end...don't think I can really do that with this device.
(In reply to comment #11) > It does work with a specified lease time. > > The DHCP server (the router) is a Linksys WRT54GX v2 with firmware 2.00.19. > > You asked (in the hostap list) about capturing traffic from the other > end...don't think I can really do that with this device. I suggest upgrading to the latest firmware then. If your firmware is already the latest then I suggest opening a bug report with linksys. I think that you can run your OpenWRT on that linksys model btw - so if you're brave you could try that and see if it fixes your issue. Either way, this is being closed as UPSTREAM. But feel free to add more comments here to update your progress. CC'ing mobile as it maybe hostap related too.
Unfortunately, it is the latest firmware on the router and there is no OpenWRT for this model (last time I checked). I'll open a support case with Linksys...not confident that will go anywhere, but its worth a shot. Seems a bit frustrating since it worked with no wireless encryption and also with WEP, but not with WPA. Thanks.