Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159029 - net-misc/dhcpcd-3.0.x doesn't play well with wpa_supplicant/hostap
Summary: net-misc/dhcpcd-3.0.x doesn't play well with wpa_supplicant/hostap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-24 11:40 UTC by Chris
Modified: 2007-01-07 16:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Packet capture from dhcpcd 2.0.5-r1 (dhcpcd-2.0.5-r1,6.08 KB, text/plain)
2006-12-24 11:41 UTC, Chris
Details
Packet capture from dhcpcd 3.0.8 (dhcpcd-3.0.8,2.45 KB, text/plain)
2006-12-24 11:43 UTC, Chris
Details
Wireshark Capture from v2.0.5-r1 - SUCCESS (dhcpcd-2.0.5-r1.pcap,2.89 KB, application/octet-stream)
2006-12-30 06:19 UTC, Chris
Details
Wireshark Capture from v3.0.8 - FAILURE (dhcpcd-3.0.8.pcap,2.27 KB, application/octet-stream)
2006-12-30 06:20 UTC, Chris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2006-12-24 11:40:25 UTC
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.
Comment 1 Chris 2006-12-24 11:41:02 UTC
Created attachment 104684 [details]
Packet capture from dhcpcd 2.0.5-r1

This is a successful address assignment
Comment 2 Chris 2006-12-24 11:43:03 UTC
Created attachment 104685 [details]
Packet capture from dhcpcd 3.0.8

This is the failed address assignment
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-12-28 03:38:47 UTC
Could you attach captures wireshark understands or tell me which tool to use on the currently attached captures?

Thanks
Comment 4 Chris 2006-12-30 06:19:37 UTC
Created attachment 104976 [details]
Wireshark Capture from v2.0.5-r1 - SUCCESS
Comment 5 Chris 2006-12-30 06:20:16 UTC
Created attachment 104977 [details]
Wireshark Capture from v3.0.8 - FAILURE
Comment 6 Roy Marples (RETIRED) gentoo-dev 2006-12-30 06:35:27 UTC
I can't see anything wrong with that.

Do other dhcp clients work? Specifically dhclient (net-misc/dhcp) and udhcpc (net-misc/udhcp).
Comment 7 Chris 2006-12-30 08:24:03 UTC
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.
Comment 8 Roy Marples (RETIRED) gentoo-dev 2006-12-30 16:48:42 UTC
(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
Comment 9 Chris 2006-12-31 11:47:11 UTC
(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.
Comment 10 Roy Marples (RETIRED) gentoo-dev 2007-01-01 10:12:00 UTC
(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?
Comment 11 Chris 2007-01-06 23:15:30 UTC
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.
Comment 12 Roy Marples (RETIRED) gentoo-dev 2007-01-07 01:48:09 UTC
(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.
Comment 13 Chris 2007-01-07 16:14:11 UTC
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.