Bug 472183

Summary: network manager can't connect to wireless networks protected by 64 bit keys
Product: [Fedora] Fedora Reporter: cornel panceac <cpanceac>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 12CC: arxs, dcbw, philbyjohn, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 497304 (view as bug list) Environment:
Last Closed: 2009-11-18 21:01:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
output from 8dec2k8
none
lspci output none

Description cornel panceac 2008-11-19 08:13:51 UTC
Description of problem:
sitting near a friends router, i wanted to connect with my wireless card. i knew the key but, the router was configured to be encrypted with a 64 bit key, and network manager does not offer a connection to such a network, only 128 bits.

Version-Release number of selected component (if applicable):

$ rpm -q NetworkManager
NetworkManager-0.7.0-0.11.svn4022.4.fc9.i386


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Dan Williams 2008-11-19 17:03:33 UTC
NM certainly does support 40-bit WEP keys; what exact option are you choosing in the UI when you enter the key?  "40/128-bit WEP Hex" or something else?

Comment 2 cornel panceac 2008-11-19 17:27:25 UTC
any option containing a wep key. unfortunately the router is configured to use an 64-bit key so it fails if i try any of the available option, and 64-bit wep key is nowhere to be seen in the menu.

Comment 3 Dan Williams 2008-11-20 17:56:08 UTC
It's generally called a "40-bit" WEP key, not a 64-bit wep key, but some manufacturers use 64-bit.  Is the key a "passphrase", an ASCII key, or a hex key?  But most certainly the option you want is "40/128-bit WEP Key".

Comment 4 cornel panceac 2008-11-20 18:21:26 UTC
the key is
0123456789

and the 40/128 option does not allow me to connect.

Comment 5 Dan Williams 2008-11-20 18:30:39 UTC
Does the dialog allow you to clikc OK and then the connection fails, or that the dialog simply doesn't allow you click OK after entering your key?

Comment 6 cornel panceac 2008-11-20 18:37:28 UTC
i don't have the router right now, but as far as i can remember, i could click ok and then failed.

Comment 7 Dan Williams 2008-11-24 23:54:54 UTC
Can you try a pure wpa_supplicant config for your network?  Put this file in /tmp (without the ------- lines):

---------------------
ap_scan=1
fast_reauth=1

network={
	ssid="<your ssid>"
	scan_ssid=1
	key_mgmt=NONE
	wep_key0=<your WEP key>
	wep_tx_keyidx=0
}
---------------------

Next, as root, do the following (make sure you have enough scrollback in your terminal, or redirect wpa_supplicant output to a file):

service NetworkManager stop
killall -TERM wpa_supplicant
/usr/sbin/wpa_supplicant -dddt -i <wifi interface> -D wext -c /etc/wpa_supplicant.conf

let that run for a minute or two, then grab its output, and attach it to this bug report so I can see if taking NM out of the equation works or not.

Comment 8 cornel panceac 2008-11-25 17:25:53 UTC
thnx, what should be the name of the /tmp file?

Comment 9 Dan Williams 2008-11-25 19:33:32 UTC
ah :) my fault.  Whatever file name you save that as, goes after the "-c" in the wpa_supplicant command.  So, if you put that content into a file called "/tmp/foo", and assuming your wifi interface is wlan0, you'd then do:

service NetworkManager stop
killall -TERM wpa_supplicant
/usr/sbin/wpa_supplicant -dddt -i wlan0 -D wext -c /tmp/foo

Comment 10 cornel panceac 2008-12-08 17:24:08 UTC
i've got the router and here's what i've found: (see attachment)

Comment 11 cornel panceac 2008-12-08 17:25:46 UTC
Created attachment 326152 [details]
output from 8dec2k8

Comment 12 cornel panceac 2008-12-23 07:51:37 UTC
meanwhile i've discovered that f10 on acer 5315 with broadcom 4312 internal wireless card can connect to the same wap so, i'v yum upgraded the f9 from my thinkpad x40 to f10. unfortunately this didn't help. so i did some moretests: i've attached an rtl8xxx usb card to the thinkpad and it did connect to the wap. next, i booted puppy 4.1.2 and it did connect to the wap using the pcmcia ralink card (wich does not connect in f10 and f9). same thing happen in ubuntu 8.10. so ithought that it's maybe related to selinux or iptables. i've found out that 
service iptables stop
and 
setenforce 0
does not help.

as a side note, i'vo renamed my only eth interface to eth0 and my pcmcia wireless interface to wlan0 (in/etc ...udev...persistent network rules).

next, i'll check system-config-network, _maybe_ there's an wireless interface defined there, i've found that defining interfaces there makes nm fail even if network service is stopped.

Comment 13 cornel panceac 2008-12-23 08:01:06 UTC
the nm version now is
NetworkManager-0.7.0-0.12.svn4326.fc10.i386

and
removing the only interface configured in system-config-network (eth2) didn't help.

i'm not that sure it' nm's fault anymore. maybe it's something in the way fedora treats pcmcia {interfaces}.

Comment 14 cornel panceac 2008-12-23 08:03:17 UTC
just to be sure, i've replaced the wireless pcmcia card with an old pcmcia wired network card and it connected immediatly.

out of ideas :(

Comment 15 cornel panceac 2008-12-24 14:09:23 UTC
i've tested the card on asus a3h notebook (with f10 live cd) and same thing happens, dhcpdiscover fails to aquire address.

Comment 16 Dan Williams 2009-02-14 12:34:43 UTC
Just tried a 40/64 bit WEP key (0123456789) with my ipw2200, latest F10 NetworkManager (NetworkManager-0.7.0-2.git20090207.fc10), and a Linksys WRT54GC.  Connection works fine.

Could you try latest updates *and* latest kernel for F-10?  This sounds more and more like a driver problem, which a newer kernel might help.

Comment 17 cornel panceac 2009-02-16 17:46:41 UTC
is your interface usb? or pcmcia?

i've bought today a router and one usb wireless card ralink rt2501.

i've configured the router to not use any wireless security.

the pcmcia card failed to connect, the usb card connected successfuly. (that's how i'm typing this things into bugzilla, btw :))

f10 is updated.

Comment 18 Dan Williams 2009-02-17 11:56:42 UTC
What brand and model is the PCMCIA card?  Can you paste in the output of both "/sbin/lspcmcia" and "/sbin/lspci" ?  I think you're right, it's looking like the driver for that card doesn't handle things correctly.

Comment 19 cornel panceac 2009-02-17 17:34:18 UTC
gigabyte "aircruiser g" gn-wmkg

# lspcmcia
Socket 0 Bridge:   	[yenta_cardbus] 	(bus ID: 0000:02:00.0)

# lspci | grep ardb
03:00.0 Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)

thank you.

Comment 20 cornel panceac 2009-02-17 17:53:56 UTC
Created attachment 332265 [details]
lspci output

Comment 21 Dan Williams 2009-02-17 19:04:46 UTC
Ok, just to clarify...

NM + rtl8xxx USB -> works
NM + Broadcom 4312 -> works
NM + ralink rt2500 CardBus -> doesn't work

Is that correct?

Comment 22 cornel panceac 2009-02-17 19:20:22 UTC
yes, and 
NM + rlink rt2501 usb, works too.

Comment 23 cornel panceac 2009-02-17 19:20:55 UTC
s/rlink/ralink

Comment 24 Niels Haase 2009-04-10 22:30:58 UTC
Reporter, can you please so kind to check this issue with Rawhide (Live CD is available[1]) and let us know whether the issue is still happening? Thank you. 


[1] http://download.fedoraproject.org/pub/fedora/linux/releases/test/11-Beta/Live/i686/F11-Beta-i686-Live.iso


-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 25 cornel panceac 2009-04-11 13:37:00 UTC
i've tried with the snapshot1 i686 post beta live cd (gnome) and it's not working, both on unsecured and on wep/64bits connections. considering the number of failures, i tried another distro just to see the card working. then i've seen it working on sidux6 on unsecured connection when i used wpa_supplicant and not wireless tools. it was not working on wep protected connection on sidux either (whatever i choosed).

so, next thing i wanna do is buy a pcmcia card wich is known to work with fedora. is there such a wireless card?

thank you.

Comment 26 cornel panceac 2009-04-14 14:33:35 UTC
a small correction: it was not sidux6, it was sidux 2009-01.

Comment 27 cornel panceac 2009-04-14 17:24:29 UTC
news: i;ve been thinking, what if i try to connect using the network service instead of networkmanager? so i've found that not even the network service can connect using the pcmcia card, although it can too connect using the ralink 2501 usb card, even if they use the same driver! that means imo that the driver is buggy on the pcmcia side and not on the usb side.
also, i;ve got another idea: what if i\d try to use ndiswrapper? so i've discoverd that using the windows driver makes the pcmcia card connect. so i believe we can say beyond any doubt, that it\s not an nm or s-c-n bug, but a driver bug. remains a mistery, why on some other distros, the card worked, at least on unencrypted connections.

if you agree, i'll close this bug.

thank you for your help!

Comment 28 cornel panceac 2009-05-23 18:02:05 UTC
still not working on updated rawhide (f11)

Comment 29 Bug Zapper 2009-06-09 09:53:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 30 Niels Haase 2009-06-19 21:42:15 UTC
This bug has been triaged

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 31 cornel panceac 2009-08-20 16:31:53 UTC
still not working on f12 alpha rc2 (f11.91)
.

Comment 32 Dan Williams 2009-11-11 00:14:03 UTC
(In reply to comment #31)
> still not working on f12 alpha rc2 (f11.91)

Quick summary (correct me if I'm wrong):  rt2500 USB works, but rt2500 cardbus/pcmcia *doesn't* work, correct?  Does rt2500 cardbus/pcmcia work at all, or just fails for WEP networks?

Comment 33 cornel panceac 2009-11-18 18:03:35 UTC
yes, usb works, pcmcia doesn't. 
pcmcia fails for "no wireless security" or wep with 64bit key. wpa* is not an available option in network manager.

Comment 34 Dan Williams 2009-11-18 21:01:16 UTC
I think this is actually the same as bug 469120.  They both include issues connecting to networks with rt2500pci.  I've recently tested rt73usb and that works fine on F11 and F12, so I think it's just rt2500pci that's busted here.

*** This bug has been marked as a duplicate of bug 469120 ***

Comment 35 philby john 2009-12-16 09:44:09 UTC
(In reply to comment #34)
> I think this is actually the same as bug 469120.  They both include issues
> connecting to networks with rt2500pci.

I doubt this is the case. This isn't just about rt2500pci.

Could this http://patchwork.ozlabs.org/patch/41171/ be a solution or a workaround. But I don't see this making inroads.

Comment 36 Dan Williams 2009-12-16 19:40:38 UTC
(In reply to comment #35)
> (In reply to comment #34)
> > I think this is actually the same as bug 469120.  They both include issues
> > connecting to networks with rt2500pci.
> 
> I doubt this is the case. This isn't just about rt2500pci.
> 
> Could this http://patchwork.ozlabs.org/patch/41171/ be a solution or a
> workaround. But I don't see this making inroads.  

No, that patch has nothing to do with the problem here.  It was specific to a problem with libertas chipsets and 32-character SSIDs and has nothing to do with WEP/WPA/etc.