Bug 221768 - prism54 drivers stops working with NetworkManager and dhcp
Summary: prism54 drivers stops working with NetworkManager and dhcp
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 6
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: John W. Linville
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-01-07 20:34 UTC by Jon Nettleton
Modified: 2007-11-30 22:11 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-03-01 18:53:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fix WEP and unencrypted modes (939 bytes, patch)
2007-02-05 15:06 UTC, Dan Williams
no flags Details | Diff
Don't mistakenly turn on DOT1XENABLE (fixes non-WPA useage with wpa_supplicant) (969 bytes, patch)
2007-02-15 12:48 UTC, Dan Williams
no flags Details | Diff

Description Jon Nettleton 2007-01-07 20:34:32 UTC
Testing kernel-2.6.19-1.2888.fc6 resulted in my prism54 wireless card no longer
working with dhcp and NetworkManager.  A manual ifup of the interface does
establish a wireless connection and obtains a dhcp address from the server.  The
netdev test kernel has this same problem, but the standard Core 6 kernels work fine.

Comment 1 John W. Linville 2007-01-10 15:06:35 UTC
So, after the manual ifup does traffic flow over the interface?  Is the 
problem just that NetworkManager isn't activating the interface?

Comment 2 Jon Nettleton 2007-01-10 15:20:27 UTC
That is correct.  TCP and UDP traffic and broadcast pings all work properly.

I did some more testing and realized that the bootps packets to the broadcast
address weren't going anywhere.  I could see them created on the wireless
interface, but they could not be seen by any of the computers on the network.

So possibly a problem with wpa_supplicant?  Or broadcast packet creation?

Comment 3 John W. Linville 2007-01-10 16:30:03 UTC
The prism54 sources appear to be the same between 2894.fc6 and 2869.fc6.  Can 
you be more specific about which "standard Core 6 kernels" you are using that 
work?

FWIW, I don't see any recent upstream prism54 changes that are likely to have 
caused this issue anyway.  Hmmm...

Comment 4 Luis R. Rodriguez 2007-01-10 16:59:45 UTC
The fact that wpa_supplicant is mentioned makes me worry about this bug report
as prism54 never really completed wpa support through wpa_supplicant. Also just
a note: prism FullMAC cards tend to be really flaky and as such most issues I
have seen with them tend to be hardware going awry.

Comment 5 Luis R. Rodriguez 2007-01-10 17:01:02 UTC
Adding me to the CC list

Comment 6 Jon Nettleton 2007-01-10 17:17:12 UTC
I do understand that the prism FULLMAC cards are not perfect.  I have been
through all the trials and tribulations of using NetworkManager with this card
from the beginning.  Most of Fedora Core 5 and 6 have been very stable and I
have had very few issues.  Sometimes I get the Management Queue issues and such,
but nothing that doesn't usually get fixed up by attempting a reconnect to the
AP so the hardware gets reset.  

I have been reading the netdev list to get some background on the WPA patch that
was added.  This patch also appears to be in 2.6.19 because I am seeing WPA
support listed in NM.  Is it possible this could be the culprit?

Comment 7 Dan Williams 2007-01-10 18:12:41 UTC
prism54 FullMAC is supposed to support some manner of WPA (at least TKIP)
through private hostap-based ioctls.  NetworkManager does not use those ioctls
at all, and requires WEXT compatibility.  I did upstream a patch that provides
some support for WPA via the standard WEXT calls, but I didn't think that WEXT
WPA patch was in 2.6.18 kernels, and was targetted for 2.6.19.

There is an _additional_ patch on netdev (from "chunky"??) that fixes a few
things, but is still in very rough shape and not suitable for wireless-dev let
alone Linus.


Comment 8 John W. Linville 2007-01-10 18:25:41 UTC
FWIW, Dan's WPA patch is the first prism54 patch after 2.6.18.  Depending on 
which FC6 kernel was the one that was working, Dan's patch _could_ be the 
culprit.  I'll spin a FC6 test kernel that backs-out Dan's patch.

What is the FC6 kernel version that was working for you?

Comment 9 Jon Nettleton 2007-01-10 19:16:41 UTC
2.6.18-1.2869.fc6 is working

The 2.6.19 kernel Dave wanted us to try out does not work.

2.6.19-1.2888.fc6

None of the recent netdev rpm kernels work either.

Comment 10 John W. Linville 2007-01-11 18:57:12 UTC
I think this is unlikely to help, but...

Test kernels w/ dcbw's prism54 wpa patch removed are available here:

   http://people.redhat.com/linville/kernels/fc6/

Please give them a try and post the results here...thanks!

Comment 11 Jon Nettleton 2007-01-11 19:13:56 UTC
That patch was the problem.  This kernel works fine for me.  

I am happy to test any other patches related to this chipset.

Comment 12 John W. Linville 2007-01-11 19:19:16 UTC
I'll scratch my head for a bit while I wait to see if dcbw has anything to 
offer... :-)

Comment 13 Dan Williams 2007-01-11 20:24:50 UTC
I don't really have anything; my prism54 fullmac card broke or something, since
it doesn't work with the patch, and doesn't work without the patch; it never
associates to anything in any configuration...  You could back out the commit
for the time being from wireless-dev or something.

Comment 14 Jon Nettleton 2007-01-12 14:48:16 UTC
I do have an extra prism54 mini-pci card that I could loan you if it would help.
 I assume you would need a pcmcia card though.

Comment 15 Dan Williams 2007-01-12 15:42:30 UTC
Not necessarily; I've got a laptop here that I've kept around that has quite
easy MiniPCI card access (Dell Latitude 610).

Linville; would you want that card, or should I take a look?  I don't think it
would be that hard to debug, but I might not be able to get the card back for a
few months.

Comment 16 John W. Linville 2007-01-12 16:03:55 UTC
Dan I think you are as good a person to take it as any.  You are probably the 
most familiar with the patch anyway.

Comment 17 Jon Nettleton 2007-01-15 17:11:42 UTC
Sorry, for the delay.  A couple-few months is fine.  It has been collecting dust
here for a year or so now.  Mail me offline where you want it sent to.

Comment 18 Nils Philippsen 2007-01-28 14:29:40 UTC
Just a quick "me too", let me know if therte is something I can test/help with.

Comment 19 Dan Williams 2007-02-03 23:28:35 UTC
What configurations are people using?  unencryped?  WEP?  WPA-anything?

Comment 20 Jon Nettleton 2007-02-04 05:30:05 UTC
for me, WEP and Unencrypted failed.  I have not tried WPA 

Comment 21 Nils Philippsen 2007-02-05 11:28:43 UTC
I've only tried WEP so far as WPA has been a no-go for me with my prism54 card
so far. Shout if I should give WPA a try.

Comment 22 Dan Williams 2007-02-05 13:05:22 UTC
I debugged WEP last night; I know what's wrong there.  WPA is a no-go, but it
doesn't even appear to work with the 'hostap' wpa_supplicant driver, for which
handler code has been around for ages.  Has prism54 _ever_ worked for WPA-TKIP
after, say, 2.6.13 or so?

Comment 23 Nils Philippsen 2007-02-05 13:31:55 UTC
I honestly don't know... The only thing I have heard (and may be completely
bogus) about prism54 and WPA is that the driver doesn't offer some kind of
standard API for WPA but its own thing and that doesn't work with NM. Whether or
not that own thing works/-ed or not I can't say.

Comment 24 Dan Williams 2007-02-05 15:06:07 UTC
Created attachment 147357 [details]
Fix WEP and unencrypted modes

Comment 25 Dan Williams 2007-02-05 15:07:37 UTC
John; can you spin a test kernel with this patch?  If it works for others, I'll
take care of the submission to the wireless list.

Comment 26 Luis R. Rodriguez 2007-02-05 16:27:39 UTC
FWIW this card can support only WPA TKIP through hardware. That's it, also I
never was able to complete WPA support for the driver. Recently there was a
patch which added its support but unfortunately I never got around to test it. I
believe that patch got integrated and then got reverted during the end of this
bug report.


Comment 27 John W. Linville 2007-02-05 23:05:10 UTC
Dan, et al. -- test kernels are available here:

   http://people.redhat.com/linville/kernels/fc6/

Please give those a try and post the results here...thanks!

Comment 28 Jon Nettleton 2007-02-07 23:44:34 UTC
The kernel with these patches works for me.  Thanks for debugging this problem.

Comment 29 Dan Williams 2007-02-13 19:21:56 UTC
The patch was erroneous, but had the intended result anyway.  I've posted the
correct patch to linux-wireless@vger.  John, I assume you'll take it from here?

Comment 30 Philippe Troin 2007-02-15 09:37:12 UTC
Dan,

Would you mind posting the patch here?
I can't find an archive of linux-wireless :-/
I'm seeing the same problem on fc5 with 2.6.19-1.2288.fc5.

Comment 31 Dan Williams 2007-02-15 12:48:19 UTC
Created attachment 148106 [details]
Don't mistakenly turn on DOT1XENABLE (fixes non-WPA useage with wpa_supplicant)

Corrected patch as posted to linux-wireless and stable@vger

Comment 32 John W. Linville 2007-03-01 18:53:24 UTC
This patch is merged upstream, and should be available in Fedora when Fedora 
moves to 2.6.21-based kernels.


Note You need to log in before you can comment on or make changes to this bug.