Bug 144268

Summary: NetworkManager: orinoco_cs WEP and WPA2 problems
Product: [openSUSE] SUSE Linux 10.1 Reporter: Bart Whiteley <bwhiteley>
Component: NetworkAssignee: Robert Love <rml>
Status: RESOLVED FIXED QA Contact: E-mail List <nld10-bugs-qa>
Severity: Normal    
Priority: P5 - None CC: hi-du, michael.brasse
Version: Beta 3   
Target Milestone: ---   
Hardware: i686   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 151151    
Bug Blocks:    
Attachments: screenshot of new dialog with no options but "None"
output of NetworkManager --no-daemon

Description Bart Whiteley 2006-01-20 06:56:58 UTC
In NLD10-beta1 I can't connect to my WEP wireless network.  I say Connect to Other Wireless Network, enter my ESSID, select WEP passphrase, and enter the passphrase.  After a while a dialog appears and says that the network requires a network key.  The "wireless security" drop down is set to None, and has no other options available.  So, I can't re-enter my key (not that I should need to).  If I click "Login to Network", the tray icon spins forever, or at least until I give up and run YaST2 to configure the wireless interface the old-school way.
Comment 1 Bart Whiteley 2006-01-20 06:58:05 UTC
Created attachment 64101 [details]
screenshot of new dialog with no options but "None"
Comment 2 Robert Love 2006-01-20 15:16:59 UTC

*** This bug has been marked as a duplicate of 138404 ***
Comment 3 Bart Whiteley 2006-02-08 02:47:24 UTC
Now it asks for a passphrase, but still can't connect to a WEP network, whether it is broadcast or non-broadcast.  

I'm running 0.5.1cvs20060207.  So, it looks like 148646 didn't fix the problem. 
Comment 4 Robert Love 2006-02-08 02:52:36 UTC
You are constantly trying to bring me down, Bart.

Can you attach the log, preferrably when failing to connect to a _broadcast_ network?

And this is orinoco, right?
Comment 5 Robert Love 2006-02-08 02:55:47 UTC
And is 138404 fixed?  It should be.
Comment 6 Bart Whiteley 2006-02-08 02:57:03 UTC
yes.  138404 is fixed. 
Comment 7 Bart Whiteley 2006-02-08 03:57:51 UTC
Created attachment 66919 [details]
output of NetworkManager --no-daemon 

while trying to connect to a broadcast, WEP network.  It asked for a key 4 times, if I counted right.
Comment 8 Bart Whiteley 2006-02-08 03:58:57 UTC
driver is orinoco_cs
Comment 9 Robert Love 2006-02-08 15:20:24 UTC
Association works but then DHCP fails, usually indicitive of the wrong encryption settings.  Odd.

I presume that non-encrypted networks work?
Comment 10 Bart Whiteley 2006-02-08 17:25:24 UTC
correct.  non-encrypted networks work. 
Comment 11 Robert Love 2006-02-08 17:31:21 UTC
Does `/sbin/lsmod | grep hostap` show anything?

If so, can you reboot, remove any matching modules via `/sbin/modprobe -r`, restart NM, and then try to connect?

Comment 12 Robert Love 2006-02-08 17:42:21 UTC
There are a handful of hostap drivers: hostap, hostap_cs, hostap_pci, and hostap_plx.

Essentially, I don't want any of those modules loaded; I only want orinoco_cs managing your wireless.

A simpler and better hack might be to do `mv /lib/modules/`uname -r`/kernel/drivers/net/wireless/hostap ~`

And then move it back when done testing.
Comment 13 Robert Love 2006-02-08 17:44:55 UTC
I should have added that you need to reboot after moving the modules away, natch.
Comment 14 Bart Whiteley 2006-02-09 03:39:15 UTC
'lsmod | grep hostap' yields nothing. 
Comment 15 Robert Love 2006-03-03 16:42:06 UTC
Alright, Bart.  I implement some Orinoco-specific fixes.  I think this latest release has your name all over it.  This is the release where we fix your problems and save the day.

Check out NM 0.5.1cvs20060303 (or later), now submitted to autobuild.

Alternatively, I put packages up:

http://primates.ximian.com/~rml/misc/NetworkManager/

Let me know.  Thank you.
Comment 16 Bart Whiteley 2006-03-04 05:03:29 UTC
Sorry to say, that it still doesn't work.  The behavior is the same as before.  It continues to work with "traditional ifup". 

Here is the output of NetworkManager --no-daemon

NetworkManager: <debug info>    [1141448306.750521] nm_device_802_11_wireless_get_activation_ap (): Forcing AP 'testing123'
NetworkManager: <information>   User Switch: /org/freedesktop/NetworkManager/Devices/eth1 / testing123
NetworkManager: <information>   Deactivating device eth1.
NetworkManager: <information>   Stopping ypbind.
NetworkManager: <information>   Restarting autofs.
NetworkManager: <information>   Device eth1 activation scheduled...
NetworkManager: <information>   Activation (eth1) started...
NetworkManager: <information>   Activation (eth1) Stage 1 of 5 (Device Prepare) scheduled...
NetworkManager: <information>   Activation (eth1) Stage 1 of 5 (Device Prepare) started...
NetworkManager: <information>   Activation (eth1) Stage 2 of 5 (Device Configure) scheduled...
NetworkManager: <information>   Activation (eth1) Stage 1 of 5 (Device Prepare) complete.
NetworkManager: <information>   Activation (eth1) Stage 2 of 5 (Device Configure) starting...
NetworkManager: <information>   Activation (eth1/wireless): access point 'testing123' is encrypted, and a key exists.  No new key needed.
NetworkManager: <information>   SUP: sending command 'INTERFACE_ADD eth1       wext     /var/run/wpa_supplicant '
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Invalid argument
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - NetworkManager: <information>     SUP: response was 'OK'
NetworkManager: <information>   SUP: sending command 'AP_SCAN 2'
NetworkManager: <information>   SUP: response was 'OK'
NetworkManager: <information>   SUP: sending command 'ADD_NETWORK'
NetworkManager: <information>   SUP: response was '0'
NetworkManager: <information>   SUP: sending command 'SET_NETWORK 0 ssid 74657374696e67313233'
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Operation not supported
NetworkManager: <information>   SUP: response was 'OK'
NetworkManager: <information>   SUP: sending command 'SET_NETWORK 0 scan_ssid 1'NetworkManager: <information>   SUP: response was 'OK'
NetworkManager: <information>   SUP: sending command 'SET_NETWORK 0 key_mgmt NONE'
NetworkManager: <information>   SUP: response was 'OK'
NetworkManager: <information>   SUP: sending command 'SET_NETWORK 0 wep_key0 <key>'
NetworkManager: <information>   SUP: response was 'OK'
NetworkManager: <information>   SUP: sending command 'SET_NETWORK 0 wep_tx_keyidx 0'
NetworkManager: <information>   SUP: response was 'OK'
NetworkManager: <information>   SUP: sending command 'ENABLE_NETWORK 0'
NetworkManager: <information>   SUP: response was 'OK'
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 6 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - ioctl[SIOCSIWGENIE]: Operation not supported
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 0 value 0x1 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 1 value 0x10 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 2 value 0x10 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 3 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 10 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 8 value 0x1 - NetworkManager: <information>     Activation (eth1) Stage 2 of 5 (Device Configure) complete.
NetworkManager: <information>   wpa_supplicant(6540): Global control interface '/var/run/wpa_supplicant-global'
NetworkManager: <information>   wpa_supplicant(6540): RX global ctrl_iface - hexdump_ascii(len=49):
NetworkManager: <information>   wpa_supplicant(6540):      49 4e 54 45 52 46 41 43 45 5f 41 44 44 20 65 74   INTERFACE_ADD et
NetworkManager: <information>   wpa_supplicant(6540):      68 31 09 09 77 65 78 74 09 2f 76 61 72 2f 72 75   h1__wext_/var/ru
NetworkManager: <information>   wpa_supplicant(6540):      6e 2f 77 70 61 5f 73 75 70 70 6c 69 63 61 6e 74   n/wpa_supplicant
NetworkManager: <information>   wpa_supplicant(6540):      09                              _
NetworkManager: <information>   wpa_supplicant(6540): CTRL_IFACE GLOBAL INTERFACE_ADD 'eth1             wext    /var/run/wpa_supplicant '
NetworkManager: <information>   wpa_supplicant(6540): Initializing interface 'eth1' conf 'N/A' driver 'wext' ctrl_interface '/var/run/wpa_supplicant'
NetworkManager: <information>   wpa_supplicant(6540): Initializing interface (2) 'eth1'
NetworkManager: <information>   wpa_supplicant(6540): EAPOL: SUPP_PAE entering state DISCONNECTED
NetworkManager: <information>   wpa_supplicant(6540): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
NetworkManager: <information>   wpa_supplicant(6540): EAPOL: SUPP_BE entering state INITIALIZE
NetworkManager: <information>   wpa_supplicant(6540): EAP: EAP entering state DISABLED
NetworkManager: <information>   wpa_supplicant(6540): EAPOL: External notification - portEnabled=0
NetworkManager: <information>   wpa_supplicant(6540): EAPOL: External notification - portValid=0
NetworkManager: <information>   wpa_supplicant(6540): SIOCGIWRANGE: WE(compiled)=19 WE(source)=14 enc_capa=0x0
NetworkManager: <information>   wpa_supplicant(6540):   capabilities: key_mgmt 0x0 enc 0x3
NetworkManager: <information>   wpa_supplicant(6540): Own MAC address: 00:02:2d:69:13:a5
NetworkManager: <information>   wpa_supplicant(6540): wpa_driver_wext_set_wpa
NetworkManager: <information>   wpa_supplicant(6540):
NetworkManager: <information>   wpa_supplicant(6540): wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
NetworkManager: <information>   wpa_supplicant(6540): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
NetworkManager: <information>   wpa_supplicant(6540): wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
NetworkManager: <information>   wpa_supplicant(6540): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
NetworkManager: <information>   wpa_supplicant(6540): wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
NetworkManager: <information>   wpa_supplicant(6540): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
NetworkManager: <information>   wpa_supplicant(6540): wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
NetworkManager: <information>   wpa_supplicant(6540): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
NetworkManager: <information>   wpa_supplicant(6540): wpa_driver_wext_set_countermeasures
NetworkManager: <information>   wpa_supplicant(6540): wpa_driver_wext_set_drop_unencrypted
NetworkManager: <information>   wpa_supplicant(6540): Setting scan request: 0 sec 100000 usec
NetworkManager: <information>   wpa_supplicant(6540): Added interface eth1
NetworkManager: <information>   wpa_supplicant(6540): Wireless event: cmd=0x8b06 len=8
NetworkManager: <information>   wpa_supplicant(6540): RX ctrl_iface - hexdump_ascii(len=9):
NetworkManager: <information>   wpa_supplicant(6540):      41 50 5f 53 43 41 4e 20 32                        AP_SCAN 2
NetworkManager: <information>   wpa_supplicant(6540): Wireless event: cmd=0x8b2a len=8
NetworkManager: <information>   wpa_supplicant(6540): RX ctrl_iface - hexdump_ascii(len=11):
NetworkManager: <information>   wpa_supplicant(6540):      41 44 44 5f 4e 45 54 57 4f 52 4b                  ADD_NETWORK
NetworkManager: <information>   wpa_supplicant(6540): CTRL_IFACE: ADD_NETWORK
NetworkManager: <information>   wpa_supplicant(6540): Wireless event: cmd=0x8b15 len=20
NetworkManager: <information>   wpa_supplicant(6540):  new AP: 44:44:44:44:44:44NetworkManager: <information>   wpa_supplicant(6540): Added BSSID 00:00:00:00:00:00 into blacklist
NetworkManager: <information>   wpa_supplicant(6540): State: DISCONNECTED -> DISCONNECTED
NetworkManager: <information>   wpa_supplicant(6540): EAPOL: External notification - portEnabled=0
NetworkManager: <information>   wpa_supplicant(6540): EAPOL: External notification - portValid=0
NetworkManager: <information>   wpa_supplicant(6540): CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
NetworkManager: <information>   wpa_supplicant(6540): wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
NetworkManager: <information>   wpa_supplicant(6540): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
NetworkManager: <information>   wpa_supplicant(6540): wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
NetworkManager: <information>   wpa_supplicant(6540): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
NetworkManager: <information>   wpa_supplicant(6540): wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
NetworkManager: <information>   wpa_supplicant(6540): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
NetworkManager: <information>   wpa_supplicant(6540): wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
NetworkManager: <information>   wpa_supplicant(6540): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
NetworkManager: <information>   wpa_supplicant(6540): wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
NetworkManager: <information>   wpa_supplicant(6540): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
NetworkManager: <information>   wpa_supplicant(6540): RX ctrl_iface - hexdump_ascii(len=39):
NetworkManager: <information>   wpa_supplicant(6540):
NetworkManager: <information>   wpa_supplicant(6540):      69 64 20 37 34 36 35 37 33 37 34 36 39 36 65 36   id 74657374696e6
NetworkManager: <information>   wpa_supplicant(6540):      37 33 31 33 32 33 33                              7313233
NetworkManager: <information>   wpa_supplicant(6540): CTRL_IFACE: SET_NETWORK id=0 name='ssid' value='74657374696e67313233'
NetworkManager: <information>   wpa_supplicant(6540): ssid - hexdump_ascii(len=10):
NetworkManager: <information>   wpa_supplicant(6540):      74 65 73 74 69 6e 67 31 32 33                     testing123
NetworkManager: <information>   wpa_supplicant(6540): State: DISCONNECTED -> SCANNING
NetworkManager: <information>   wpa_supplicant(6540): Wireless event: cmd=0x8b2a len=8
NetworkManager: <information>   wpa_supplicant(6540): RX ctrl_iface - hexdump_ascii(len=25):
NetworkManager: <information>   wpa_supplicant(6540):      53 45 54 5f 4e 45 54 57 4f 52 4b 20 30 20 73 63   SET_NETWORK 0 sc
NetworkManager: <information>   wpa_supplicant(6540):      61 6e 5f 73 73 69 64 20 31                        an_ssid 1
NetworkManager: <information>   wpa_supplicant(6540): CTRL_IFACE: SET_NETWORK id=0 name='scan_ssid' value='1'
NetworkManager: <information>   wpa_supplicant(6540): scan_ssid=1 (0x1)
NetworkManager: <information>   wpa_supplicant(6540): Wireless event: cmd=0x8b2a len=8
NetworkManager: <information>   wpa_supplicant(6540): RX ctrl_iface - hexdump_ascii(len=27):
NetworkManager: <information>   wpa_supplicant(6540):      53 45 54 5f 4e 45 54 57 4f 52 4b 20 30 20 6b 65   SET_NETWORK 0 ke
NetworkManager: <information>   wpa_supplicant(6540):      79 5f 6d 67 6d 74 20 4e 4f 4e 45                  y_mgmt NONE
NetworkManager: <information>   wpa_supplicant(6540): CTRL_IFACE: SET_NETWORK id=0 name='key_mgmt' value='NONE'
NetworkManager: <information>   wpa_supplicant(6540): key_mgmt: 0x4
NetworkManager: <information>   wpa_supplicant(6540): RX ctrl_iface - hexdump_ascii(len=49):
NetworkManager: <information>   Activation (eth1/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to access point 'testing123'.
NetworkManager: <information>   Activation (eth1) Stage 3 of 5 (IP Configure Start) scheduled.
NetworkManager: <information>   Activation (eth1) Stage 3 of 5 (IP Configure Start) started...
NetworkManager: <information>   Activation (eth1) Beginning DHCP transaction.
NetworkManager: <information>   Activation (eth1) Stage 3 of 5 (IP Configure Start) complete.
NetworkManager: <information>   DHCP daemon state now 12 for interface eth1
NetworkManager: <information>   DHCP daemon state now 1 for interface eth1
NetworkManager: <information>   Device 'eth1' DHCP transaction took too long (>25s), stopping it.
NetworkManager: <information>   Activation (eth1) Stage 4 of 5 (IP Configure Timeout) scheduled...
NetworkManager: <information>   DHCP daemon state now 14 for interface eth1
NetworkManager: <information>   DHCP daemon state now 11 for interface eth1
NetworkManager: <information>   DHCP daemon state now 14 for interface eth1
NetworkManager: <information>   Activation (eth1) Stage 4 of 5 (IP Configure Timeout) started...
NetworkManager: <debug info>    [1141448338.015090] real_act_stage4_ip_config_timeout (): Activation (eth1/wireless): could not get IP configuration info for 'testing123', asking for new key.
NetworkManager: <information>   Activation (eth1) New wireless user key requested for network 'testing123'.
NetworkManager: <information>   Activation (eth1) Stage 4 of 5 (IP Configure Timeout) complete.
NetworkManager: <information>   Activation (eth1) New wireless user key for network 'testing123' received.
NetworkManager: <information>   Activation (eth1) Stage 1 of 5 (Device Prepare) scheduled...
NetworkManager: <information>   Activation (eth1) Stage 1 of 5 (Device Prepare) started...
NetworkManager: <information>   Activation (eth1) Stage 2 of 5 (Device Configure) scheduled...
NetworkManager: <information>   Activation (eth1) Stage 1 of 5 (Device Prepare) complete.
NetworkManager: <information>   Activation (eth1) Stage 2 of 5 (Device Configure) starting...
ioctl[SIOCSIWMLME]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Invalid argument
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x0 - Failed to disable WPA in the driver.
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - NetworkManager: <information>     Activation (eth1/wireless): access point 'testing123' is encrypted, and a key exists.  No new key needed.
NetworkManager: <WARNING>        real_act_stage2_config (): Activation (eth1/wireless): couldn't connect to the supplicant.
NetworkManager: <information>   Activation (eth1) failure scheduled...
NetworkManager: <information>   Activation (eth1) Stage 2 of 5 (Device Configure) complete.
NetworkManager: <information>   Activation (eth1) failed for access point (testing123)
NetworkManager: <information>   Activation (eth1) failed.
NetworkManager: <information>   Deactivating device eth1.
NetworkManager: <information>   Stopping ypbind.
NetworkManager: <information>   Restarting autofs.
NetworkManager: <WARNING>        nm_signal_handler (): Caught signal 2, shutting down normally.
NetworkManager: <information>   Caught terminiation signal
NetworkManager: <debug info>    [1141448374.289500] nm_print_open_socks (): Open Sockets List:
NetworkManager: <debug info>    [1141448374.289772] nm_print_open_socks (): Open Sockets List Done.
NetworkManager: <information>   Deactivating device eth0.
NetworkManager: <information>   Stopping ypbind.
NetworkManager: <information>   Restarting autofs.
NetworkManager: <information>   Deactivating device eth1.
NetworkManager: <information>   Stopping ypbind.
NetworkManager: <information>   Restarting autofs.
Comment 17 Robert Love 2006-03-04 05:33:36 UTC
Hrm, the other orinoco users are now reporting success.

The driver associates and begins the DHCP process, the failure thereof seems to indicate the wrong encryption settings.  If you have them right, I am without recourse.
Comment 18 Bart Whiteley 2006-03-04 05:44:15 UTC
You could go back to the alpha (pre beta1) code that used to work.   :)
Comment 19 Robert Love 2006-03-04 15:11:41 UTC
The problem is presumably the interaction between wpa_supplicant and the driver.  Old releases did not use wpa_supplicant; now we do, and we need it.
Comment 20 Bart Whiteley 2006-03-06 04:22:05 UTC
I double checked to make sure I had the key right.  I tried both WEP passphrase and 128bit HEX key.  I cut'n'pasted them to be sure there was no fat finger error.  Neither work, but if I switch to "traditional ifup" it works.  With NM it prompts me for a key a few times, then drops back to wired (if a wire is plugged in). 
Comment 21 Bart Whiteley 2006-03-06 16:32:22 UTC
As a side note on the new NM package, with cvs20060303 I always have to manually start nm-applet. 
Comment 22 Robert Love 2006-03-06 16:41:20 UTC
It is fixed by an updated gnome-session package.
Comment 23 Robert Love 2006-03-10 18:42:44 UTC
jg: hi! what is the status of orinoco_cs w.r.t wpa_supplicant?

We are invoking it with "AP_SCAN 2" and the "wext" driver.  See Bart's log in comment #16. It simply fails to associate.
Comment 24 Forgotten User 55iwwMllzz 2006-03-19 16:45:30 UTC
I have just tested Beta8 and it still doesn't work with orinoco + WEP. With ifup it works fine.

I also tried version 0.6.1-21 from http://primates.ximian.com/~rml/misc/NetworkManager/ and the behavior is the same. (although its logging is much less verbose).

When trying to connect to a WEP protected network, KNetworkManager doesn't even asks for the WEP key. When I try to set the wireless network parameter manually using the "Connect to Other Wireless Network..." menu option, KNetworkManager's progress bar reaches 57% but doesn't go beyond that. /var/log/message shows:

Mar 19 16:33:00 linux-p7xp kernel: eth1: New link status: Connected (0001)
Mar 19 16:33:00 linux-p7xp kernel: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Mar 19 16:33:05 linux-p7xp dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 2
Mar 19 16:33:07 linux-p7xp dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
Mar 19 16:33:10 linux-p7xp dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
Mar 19 16:33:10 linux-p7xp kernel: eth1: no IPv6 routers present
Mar 19 16:33:18 linux-p7xp dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 16
Mar 19 16:33:27 linux-p7xp dhclient: caught deadly SIGTERM
Mar 19 16:33:27 linux-p7xp dhclient: could not restore resolv.conf: No such file or directory

If I run 'iwconfig' while KNetworkManager is trying to connect, I get this:

eth1      IEEE 802.11b  ESSID:"Carla"  Nickname:"linux-p7xp"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:0E:A6:20:A4:C5
          Bit Rate:11 Mb/s   Sensitivity:1/3
          Retry limit:4   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=55/92  Signal level=-44 dBm  Noise level=-99 dBm
          Rx invalid nwid:0  Rx invalid crypt:201  Rx invalid frag:3
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

ESSID was correctly set by NM. But the encryption options weren't.

This is a naive question but why does NetworkManager behaves differently with different wireless cards? Shouldn't NM communicate with all the drivers using the same kernel's wireless extensions API?
Comment 25 Robert Love 2006-03-19 16:54:42 UTC
Because every driver is horribly broken in different ways, unfortunately.  And calling wext an API is like calling Belarus a democracy.

The reason Orinoco works with ifup but not NM is because ifup really does not tax the card -- or do much of anything vis-a-vis the API.  What we need to do is find what in NM or (more likely) wpa_supplicant is irking orinoco_cs.  A good guess is what you pointed out -- the encryption key is not set.
Comment 26 Michael Brasse 2006-03-23 16:48:46 UTC
I have the same problem using a Dell C640 with the TrueMobile 1150 card. If I can help with information let me know. 
Comment 27 Robert Love 2006-03-24 15:37:42 UTC
*** Bug 152095 has been marked as a duplicate of this bug. ***
Comment 28 Joachim Gleissner 2006-03-24 18:08:07 UTC
I think this is a wpa_supplicant problem. Could you try whether the package in gaspode-jg-2 fixes it for you?
Comment 29 Bart Whiteley 2006-03-25 03:15:20 UTC
Nice.  WEP works with those packages. 
WPA2 Personal doesn't work.  Should it? 
Comment 30 Joachim Gleissner 2006-03-25 11:45:36 UTC
No, the driver does not support WPA. Thanks for testing, package submitted.
Comment 31 Bart Whiteley 2006-03-25 16:10:55 UTC
If the driver doesn't support WPA, these options should not be available in NM, IMO.  Seems like this will be a support problem. 
Comment 32 Forgotten User 55iwwMllzz 2006-04-02 18:08:33 UTC
I am glad to inform that Beta 9's NM finally works as expected with WEP!
Good work!
Comment 33 Timo Hoenig 2006-04-03 22:42:49 UTC
*** Bug 154327 has been marked as a duplicate of this bug. ***