You are not logged in.

#1 2009-07-11 11:35:07

loktor
Member
Registered: 2009-07-11
Posts: 17

Can't connect with wpa_supplicant .

Hi !

I can connect to my wifi when I use networkmanager-applet from Gnome. But I can't connect manually with wpa_supplicant & co.
Some informations:
/etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1

network={
        ssid="MyNetwork"
        scan_ssid=1
        proto=WPA
        key_mgmt=WPA-PSK
        psk="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
}

When I try to etablish the connection, I get this:

[root]# wpa_supplicant -Dwext -ieth1  -c/etc/wpa_supplicant.conf
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:14:a4:5e:c4:9d (SSID='MyNetwork' freq=2412 MHz)
Associated with 00:14:a4:5e:c4:9d
WPA: No SSID info found (msg 1 of 4).
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:14:a4:5e:c4:9d (SSID='MyNetwork' freq=2412 MHz)
Associated with 00:14:a4:5e:c4:9d
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:14:a4:5e:c4:9d (SSID='MyNetwork' freq=2412 MHz)
Associated with 00:14:a4:5e:c4:9d
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys

I can give some log with the -d option if you want.

kernel:2.6.30-ARCH
Wireless card: Intel Corporation PRO/Wireless 2200BG

I've spend a lot of time on wikis, forums,... I don't know what to do now... If someone has an idea, you're welcome !
Thanks !

Offline

#2 2009-07-11 15:48:11

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Can't connect with wpa_supplicant .

network={
    ssid="potolan"
    psk="potholeczki21"
}

Then i use it simply:
/usr/sbin/wpa_supplicant -B -i ath0 -c /etc/wpa_supplicant.conf && dhcpcd ath0

Offline

#3 2009-07-11 19:50:45

loktor
Member
Registered: 2009-07-11
Posts: 17

Re: Can't connect with wpa_supplicant .

I tried but it didn't work. I still get this message:

CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys

Offline

#4 2009-07-11 20:31:30

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Can't connect with wpa_supplicant .

Offline

#5 2009-07-12 09:49:29

loktor
Member
Registered: 2009-07-11
Posts: 17

Re: Can't connect with wpa_supplicant .

I don't want to use a networkmanager. As I said in my first post, the network manager's applet works. But I want to be able to configure my connection myself.
I read some more "How to" or tutorials on the web and I don't know what I do wrong. I'm a desperate linux-man...^^

Here a log of wpa_supplicant. If someone can see something usefull...

[root@Kerosene loktor]# wpa_supplicant -ieth1 -c/etc/wpa_supplicant.conf -Dwext -dd
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'                                 
Reading configuration file '/etc/wpa_supplicant.conf'                                                       
ctrl_interface='/var/run/wpa_supplicant'                                                                     
ap_scan=1                                                                                                   
Line: 3 - start of a new network block                                                                       
ssid - hexdump_ascii(len=12):                                                                               
     57 41 4e 41 44 4f 4f 2d 36 39 43 36               WANADOO-69C6                                         
scan_ssid=1 (0x1)                                                                                           
proto: 0x1                                                                                                   
key_mgmt: 0x2                                                                                               
pairwise: 0x8                                                                                               
PSK - hexdump(len=32): [REMOVED]                                                                             
Line 11: removed CCMP from group cipher list since it was not allowed for pairwise cipher                   
Priority group 0                                                                                             
   id=0 ssid='WANADOO-69C6'                                                                                 
Initializing interface (2) 'eth1'                                                                           
Interface eth1 set UP - waiting a second for the driver to complete initialization                           
SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0xf                                                     
  capabilities: key_mgmt 0xf enc 0xf flags 0x0                                                               
WEXT: Operstate: linkmode=1, operstate=5                                                                     
Own MAC address: 00:12:f0:d7:4c:38                                                                           
wpa_driver_wext_set_wpa                                                                                     
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_countermeasures                                                                         
wpa_driver_wext_set_drop_unencrypted                                                                         
RSN: flushing PMKID list in the driver                                                                       
Setting scan request: 0 sec 100000 usec                                                                     
WPS: UUID based on MAC address - hexdump(len=16): 7c 7d 41 02 8d 2c 55 6f 87 60 6c 01 8f 14 bd 53           
WPS: Build Beacon and Probe Response IEs                                                                     
WPS:  * Version                                                                                             
WPS:  * Wi-Fi Protected Setup State (0)                                                                     
WPS:  * Version                                                                                             
WPS:  * Wi-Fi Protected Setup State (0)                                                                     
WPS:  * Response Type (2)                                                                                   
WPS:  * UUID-E                                                                                               
WPS:  * Manufacturer                                                                                         
WPS:  * Model Name                                                                                           
WPS:  * Model Number                                                                                         
WPS:  * Serial Number                                                                                       
WPS:  * Primary Device Type                                                                                 
WPS:  * Device Name                                                                                         
WPS:  * Config Methods (0)                                                                                   
WPS:  * RF Bands (3)                                                                                         
EAPOL: SUPP_PAE entering state DISCONNECTED                                                                 
EAPOL: KEY_RX entering state NO_KEY_RECEIVE                                                                 
EAPOL: SUPP_BE entering state INITIALIZE                                                                     
EAP: EAP entering state DISABLED                                                                             
Added interface eth1                                                                                         
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])                                                             
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                             
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])                                                             
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                             
Wireless event: cmd=0x8b19 len=8                                                                             
Received 2487 bytes of scan results (10 BSSes)                                                               
CTRL-EVENT-SCAN-RESULTS                                                                                     
Selecting BSS from priority group 0                                                                         
Try to find WPA-enabled AP                                                                                   
0: 00:14:a4:5e:c4:9d ssid='WANADOO-69C6' wpa_ie_len=22 rsn_ie_len=0 caps=0x11                               
   selected based on WPA IE                                                                                 
   selected WPA AP 00:14:a4:5e:c4:9d ssid='WANADOO-69C6'                                                     
Trying to associate with 00:14:a4:5e:c4:9d (SSID='WANADOO-69C6' freq=2412 MHz)                               
Cancelling scan request                                                                                     
WPA: clearing own WPA/RSN IE                                                                                 
Automatic auth_alg selection: 0x1                                                                           
WPA: using IEEE 802.11i/D3.0                                                                                 
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1                                           
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE                                                                                     
WPA: using GTK TKIP                                                                                         
WPA: using PTK TKIP                                                                                         
WPA: using KEY_MGMT WPA-PSK                                                                                 
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing                                                                     
wpa_driver_wext_set_drop_unencrypted                                                                                 
State: DISCONNECTED -> ASSOCIATING                                                                                   
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)                                                               
WEXT: Operstate: linkmode=-1, operstate=5                                                                             
wpa_driver_wext_associate                                                                                             
wpa_driver_wext_set_psk                                                                                               
Setting authentication timeout: 10 sec 0 usec                                                                         
EAPOL: External notification - EAP success=0                                                                         
EAPOL: External notification - EAP fail=0                                                                             
EAPOL: External notification - portControl=Auto                                                                       
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])                                                                     
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                                     
Wireless event: cmd=0x8b06 len=8                                                                                     
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])                                                                     
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                                     
Wireless event: cmd=0x8b06 len=8                                                                                     
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])                                                                     
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                                     
Wireless event: cmd=0x8b04 len=12                                                                                     
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])                                                           
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                                     
Wireless event: cmd=0x8b15 len=20                                                                                     
Wireless event: new AP: 00:14:a4:5e:c4:9d                                                                             
State: ASSOCIATING -> ASSOCIATED                                                                                     
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)                                                               
WEXT: Operstate: linkmode=-1, operstate=5                                                                             
Associated to a new BSS: BSSID=00:14:a4:5e:c4:9d                                                                     
No keys have been configured - skip key clearing                                                                     
Associated with 00:14:a4:5e:c4:9d                                                                                     
WPA: Association event - clear replay counter                                                                         
WPA: Clear old PTK                                                                                                   
EAPOL: External notification - portEnabled=0                                                                         
EAPOL: External notification - portValid=0                                                                           
EAPOL: External notification - EAP success=0                                                                         
EAPOL: External notification - portEnabled=1                                                                         
EAPOL: SUPP_PAE entering state CONNECTING                                                                             
EAPOL: SUPP_BE entering state IDLE                                                                                   
Setting authentication timeout: 10 sec 0 usec                                                                         
Cancelling scan request                                                                                               
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])                                                           
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                                     
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])                                                                     
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                                     
Wireless event: cmd=0x8b15 len=20                                                                                     
Wireless event: new AP: 00:00:00:00:00:00                                                                             
Setting scan request: 0 sec 100000 usec                                                                               
Added BSSID 00:14:a4:5e:c4:9d into blacklist                                                                         
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys                                                             
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                                                 
State: ASSOCIATED -> DISCONNECTED                                                                                     
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)                                                               
WEXT: Operstate: linkmode=-1, operstate=5                                                                             
EAPOL: External notification - portEnabled=0                                                                         
EAPOL: SUPP_PAE entering state DISCONNECTED                                                                           
EAPOL: SUPP_BE entering state INITIALIZE                                                                             
EAPOL: External notification - portValid=0                                                                           
EAPOL: External notification - EAP success=0                                                                         
RX EAPOL from 00:14:a4:5e:c4:9d                                                                                       
RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 00 36 0d b9 5b 05 b4 33 2c 74 46 16 8b 4b 77 63 d1 7c 94 3e 58 94 1e 6a db 4a 2f f7 bf 8c d7 f6 cf 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00                                                                                                                                                   
Setting authentication timeout: 10 sec 0 usec                                                                                                               
IEEE 802.1X RX: version=1 type=3 length=95                                                                                                                   
  EAPOL-Key type=254                                                                                                                                         
  key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)                                                                                                         
  key_length=32 key_data_length=0                                                                                                                           
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 00                                                                                                   
  key_nonce - hexdump(len=32): 36 0d b9 5b 05 b4 33 2c 74 46 16 8b 4b 77 63 d1 7c 94 3e 58 94 1e 6a db 4a 2f f7 bf 8c d7 f6 cf                               
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00                                                                                 
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00                                                                                                         
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00                                                                                               
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00                                                                                 
WPA: RX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 00 36 0d b9 5b 05 b4 33 2c 74 46 16 8b 4b 77 63 d1 7c 94 3e 58 94 1e 6a db 4a 2f f7 bf 8c d7 f6 cf 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00                                                                                                                                         
WPA: No SSID info found (msg 1 of 4).                                                                                                                       
State: DISCONNECTED -> SCANNING                                                                                                                             
Starting AP scan (specific SSID)                                                                                                                             
Scan SSID - hexdump_ascii(len=12):                                                                                                                           
     57 41 4e 41 44 4f 4f 2d 36 39 43 36               WANADOO-69C6                                                                                         
Trying to get current scan results first without requesting a new scan to speed up initial association                                                       
Received 2493 bytes of scan results (10 BSSes)                                                                                                               
CTRL-EVENT-SCAN-RESULTS                                                                                                                                     
Selecting BSS from priority group 0                                                                                                                         
Try to find WPA-enabled AP                                                                                                                                   
0: 00:14:a4:5e:c4:9d ssid='WANADOO-69C6' wpa_ie_len=22 rsn_ie_len=0 caps=0x11                                                                               
   selected based on WPA IE                                                                                                                                 
   selected WPA AP 00:14:a4:5e:c4:9d ssid='WANADOO-69C6'                                                                                                     
Trying to associate with 00:14:a4:5e:c4:9d (SSID='WANADOO-69C6' freq=2412 MHz)                                                                               
Cancelling scan request                                                                                                                                     
WPA: clearing own WPA/RSN IE                                                                                                                                 
Automatic auth_alg selection: 0x1                                                                                                                           
WPA: using IEEE 802.11i/D3.0                                                                                                                                 
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1                                                                                           
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02                                               
WPA: clearing AP RSN IE                                                                                                                                     
WPA: using GTK TKIP                                                                                                                                         
WPA: using PTK TKIP                                                                                                                                         
WPA: using KEY_MGMT WPA-PSK                                                                                                                                 
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02                                       
No keys have been configured - skip key clearing                                                                                                             
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                                                                                                                                   
wpa_driver_wext_set_psk                                                                                                                                     
Setting authentication timeout: 10 sec 0 usec                                                                                                               
EAPOL: External notification - EAP success=0                                                                                                                 
EAPOL: External notification - EAP fail=0                                                                                                                   
EAPOL: External notification - portControl=Auto                                                                                                             
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])                                                                                                             
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                                                                             
Wireless event: cmd=0x8b06 len=8                                                                                                                             
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])                                                                                                             
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                                                                             
Wireless event: cmd=0x8b04 len=12                                                                                                                           
EAPOL: startWhen --> 0                                                                                                                                       
EAPOL: disable timer tick                                                                                                                                   
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])                                                                                                             
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                                                                             
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])                                                                                                 
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                                                                             
Wireless event: cmd=0x8b15 len=20                                                                                                                           
Wireless event: new AP: 00:14:a4:5e:c4:9d                                                                                                                   
State: ASSOCIATING -> ASSOCIATED                                                                                                                             
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)                                                                                                     
WEXT: Operstate: linkmode=-1, operstate=5                                                                                                                   
Associated to a new BSS: BSSID=00:14:a4:5e:c4:9d                                                                                                             
No keys have been configured - skip key clearing                                                                                                             
Associated with 00:14:a4:5e:c4:9d                                                                                                                           
WPA: Association event - clear replay counter                                                                                                               
WPA: Clear old PTK                                                                                                                                           
EAPOL: External notification - portEnabled=0                                                                                                                 
EAPOL: External notification - portValid=0                                                                                                                   
EAPOL: External notification - EAP success=0                                                                                                                 
EAPOL: External notification - portEnabled=1                                                                                                                 
EAPOL: SUPP_PAE entering state CONNECTING                                                                                                                   
EAPOL: enable timer tick                                                                                                                                     
EAPOL: SUPP_BE entering state IDLE                                                                                                                           
Setting authentication timeout: 10 sec 0 usec                                                                                                               
Cancelling scan request                                                                                                                                     
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])                                                                                                 
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                                                                             
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])                                                                                                             
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added                                                                                                             
Wireless event: cmd=0x8b15 len=20                                                                                                                           
Wireless event: new AP: 00:00:00:00:00:00                                                                                                                   
Setting scan request: 0 sec 100000 usec                                                                                                                     
BSSID 00:14:a4:5e:c4:9d blacklist count incremented to 2                                                                                                     
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys                                                                                                     
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                                                                                       
State: ASSOCIATED -> DISCONNECTED                                                                                                                           
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)                                                                                                     
WEXT: Operstate: linkmode=-1, operstate=5                                                                                                                   
EAPOL: External notification - portEnabled=0                                                                                                                 
EAPOL: SUPP_PAE entering state DISCONNECTED                                                                                                                 
EAPOL: SUPP_BE entering state INITIALIZE                                                                                                                     
EAPOL: External notification - portValid=0                                                                                                                   
EAPOL: External notification - EAP success=0                                                                                                                 
RX EAPOL from 00:14:a4:5e:c4:9d                                                                                                                             
RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 00 36 0d b9 5b 05 b4 33 2c 74 46 16 8b 4b 77 63 d1 7c 94 3e 58 94 1e 6a db 4a 2f f7 bf 8c d7 f6 d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00                                                                                                                                                   
Setting authentication timeout: 10 sec 0 usec

Offline

Board footer

Powered by FluxBB