networkmanager and WEP shared keys problem



hi guys,

I'm using the networkmanager from a Debian testing installation
(0.6.5-3) and I don't have tested with the svn version of the
networkmanger, but I have a problem with shared keys wep authentication.

When I try to use the nm-applet to fill the pass with "shared keys"
option the NetworkManager try:

Jan 14 10:09:47 sarang NetworkManager:   Activation (eth2) Stage 1 of
5 (Device Prepare) complete.
Jan 14 10:09:47 sarang NetworkManager:   Activation (eth2) Stage 2 of
5 (Device Configure) starting...
Jan 14 10:09:47 sarang NetworkManager:   Activation (eth2/wireless):
access point 'impa-wl' is encrypted, and a key exists.  No new key
needed.
Jan 14 10:09:48 sarang NetworkManager:   SUP: sending command
'INTERFACE_ADD eth2^I^Iwext^I/var/run/wpa_supplicant^I'
Jan 14 10:09:48 sarang kernel: bcm43xx: set security called, .level =
0, .enabled = 0, .encrypt = 0
Jan 14 10:09:48 sarang last message repeated 3 times
Jan 14 10:09:48 sarang NetworkManager:   SUP: response was 'OK'
Jan 14 10:09:48 sarang NetworkManager:   SUP: sending command 'AP_SCAN 1'
Jan 14 10:09:48 sarang NetworkManager:   SUP: response was 'OK'
Jan 14 10:09:48 sarang NetworkManager:   SUP: sending command 'ADD_NETWORK'
Jan 14 10:09:48 sarang NetworkManager:   SUP: response was '0'
Jan 14 10:09:48 sarang NetworkManager:   SUP: sending command
'SET_NETWORK 0 ssid 696d70612d776c'
Jan 14 10:09:48 sarang NetworkManager:   SUP: response was 'OK'
Jan 14 10:09:48 sarang NetworkManager:   SUP: sending command
'SET_NETWORK 0 key_mgmt NONE'
Jan 14 10:09:48 sarang NetworkManager:   SUP: response was 'OK'
Jan 14 10:09:48 sarang NetworkManager:   SUP: sending command
'SET_NETWORK 0 auth_alg SHARED'
Jan 14 10:09:48 sarang NetworkManager:   SUP: response was 'OK'
Jan 14 10:09:48 sarang NetworkManager:   SUP: sending command
'SET_NETWORK 0 wep_key0 '
Jan 14 10:09:48 sarang NetworkManager:   SUP: response was 'OK'
Jan 14 10:09:48 sarang NetworkManager:   SUP: sending command
'SET_NETWORK 0 wep_tx_keyidx 0'
Jan 14 10:09:48 sarang NetworkManager:   SUP: response was 'OK'
Jan 14 10:09:48 sarang NetworkManager:   SUP: sending command
'ENABLE_NETWORK 0'
Jan 14 10:09:48 sarang NetworkManager:   SUP: response was 'OK'

Until ok! But I got:

Jan 14 10:10:48 sarang NetworkManager:   Activation (eth2/wireless):
association took too long (>60s), failing activation.

or (in other attempt):

Jan 14 11:26:27 sarang NetworkManager:   Device 'eth2' DHCP
transaction took too long (>45s), stopping it.

I was reading some links, but I don't see a solution:
http://mail.gnome.org/archives/networkmanager-list/2005-December/msg00157.html
http://www.redhat.com/archives/rhl-beta-list/2004-November/thread.html#00166
http://mail.gnome.org/archives/networkmanager-list/2005-August/msg00140.html

So I tested wpa_supplicant by the hand:

1. created a file "test.conf":
ctrl_interface=/var/run/wpa_supplicant
network={
       ssid="impa-wl"
       key_mgmt=NONE
       auth_alg=SHARED
       wep_key0="mypassword"
       wep_tx_keyidx=0
}
2. executed the command:
# wpa_supplicant -i eth2 -d -c /home/amadeu/test.conf

and.. it works and the dhclient works fine too :)

My wpa_supplicant log is :

Scan results: 3
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:11:95:be:ce:d4 ssid='impa-wl' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
  skip - no WPA/RSN IE
1: 00:15:e9:f7:1e:4d ssid='cin-wl' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
  skip - no WPA/RSN IE
2: 00:0f:3d:ae:cb:cd ssid='impa-wl' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
  skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:11:95:be:ce:d4 ssid='impa-wl' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
  selected non-WPA AP 00:11:95:be:ce:d4 ssid='impa-wl'
Trying to associate with 00:11:95:be:ce:d4 (SSID='impa-wl' freq=2412 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x2
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=1 key_idx=0 set_tx=1 seq_len=0 key_len=13
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b04 len=16
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=23
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b15 len=24
Wireless event: new AP: 00:00:00:00:00:00
BSSID 00:11:95:be:ce:d4 blacklist count incremented to 2
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=24
Wireless event: new AP: 00:11:95:be:ce:d4
State: DISCONNECTED -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=00:11:95:be:ce:d4
Associated with 00:11:95:be:ce:d4
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state S_FORCE_AUTH
EAPOL: SUPP_BE entering state IDLE
Cancelling authentication timeout
Removed BSSID 00:11:95:be:ce:d4 from blacklist
State: ASSOCIATED -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:11:95:be:ce:d4 completed
(reauth) [id=0 id_str=]
wpa_driver_wext_set_operstate: operstate 0->1 (UP)
WEXT: Operstate: linkmode=-1, operstate=6
Cancelling scan request
RTM_NEWLINK: operstate=1 ifi_flags=0x11003 ([UP][LOWER_UP])
WEXT: Operstate: linkmode=-1, operstate=6
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth2' added
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth2' added

My essid is "imap-wl" of the WEP 128-bits with shared keys option. I
don't know which the AP model. My wireless card is a Broadcom 43xx.
And my iwconfig eth2 output show:

#  iwconfig  eth2
eth2      IEEE 802.11b/g  ESSID:"impa-wl"  Nickname:"bcm43xx"
         Mode:Managed  Frequency=2.412 GHz  Access Point: 00:11:95:BE:CE:D4
         Bit Rate=24 Mb/s   Tx-Power=18 dBm
         RTS thr:off   Fragment thr:off
         Encryption key:696D-7061-6361-7374-6F72-696E-61   Security mode:open
         Link Quality=55/100  Signal level=-70 dBm  Noise level=-68 dBm
         Rx invalid nwid:0  Rx invalid crypt:1193  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Someone could help me? :)

Thanks a lot and sorry for my poor english :)

PS: others logs here (my pt-br blog):
http://twiki.softwarelivre.org/bin/view/Blogs/BlogPostAmadeuJunior20080114122626
--
Amadeu Jr. :: twiki.dcc.ufba.br/~AmadeuJunior


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]