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

WPA2-WLAN on Laptop with PCMCIA card and wpa_supplicant



Trying to get online wirelessly I encountered problems connecting by means of wpa_supplicant.

I have an IBM Thinkpad R32 running Debian Lenny without a desktop manager. For the WLAN connection I have a PCMCIA WLAN card from 3com. WLAN worked with this card and this laptop both under Windows and under Ubuntu. The access point I am trying to connect to only allows WPA2-encrypted connections. With my other laptop (Lenovo Thinkpad R500, Ubuntu, Gnome) WLAN works fine.

Here is what I did and what the results are:

 

1.) I boot the laptop with deactivated wired interface eth0 and without the card inserted, so after startup only loop is up and running.

 

2.) Plugging in the card causes the kernel modules atmel and atmel_cs to be loaded and the card is recognized by the laptop as eth1: Atmel at76c50x. Version 0.98. MAC 00:04:75:db:c8:e7. The light on the card turns on and stays on, and iwconfig lists eth1 as available wireless interface with managed mode.

 

3.) When running ifconfig eth1 up, the light at the card is turned off. Everything seems to go fine, dmesg -c gives

[ 1756.247035] firmware: requesting atmel_at76c502_3com-wpa.bin

[ 1756.368570] ADDRCONF(NETDEV_UP): eth1: link is not ready

 

4.) Now I try to connect to the access point using wpa_supplicant. To this end I created a configuration file with the following content:

 

# /et/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant

network={

ssid="NETCONNECT-7124"

psk="<the key>"

}

 

Running wpa_supplicant -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -i eth1 -dd causes the light to turn on, flush, and turn off. Meanwhile, wpa_supplicant scans the access points, finds the right one (and some more), but cannot connect to any of them. It says 'No suitable AP found' and loops into the next try. Before the scanning it also states that 'Driver does not support WPA'. I add the exact output and the dmesg below.

When I interrupt the process with ctrl^c the light of the card turns on and stays on, and indeed ifconfig shows that eth1 was brought down. iwconfig shows no changes compared to the starting point before running wpa_supplicant.

 

I also tried to use the atmel driver explicitely, so (after bringing up eth1 again) ran wpa_supplicant -D atmel -c /etc/wpa_supplicant/wpa_supplicant.conf -i eth1 -dd. This works even worse, as it seems (see below), and in any case does not result in a connection with the access point. iwconfig is unchanged again.

 

Finally I also tried not to bring up eth1 before running wpa_supplicant. In this case wpa_supplicant seems to bring it up itself in any of the two driver cases, but the rest is exactly identical, so in the end I cannot connect.

 

And that's where I'm stuck.

I would really appreciate any help! Thanks in advance!

eltrebol

 

###################

# output of wpa_supplicant -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -i eth1 -dd:

Initializing interface 'eth1' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'

Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'

Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'

ctrl_interface='/var/run/wpa_supplicant'

Line: 3 - start of a new network block

ssid - hexdump_ascii(len=15):

4e 45 54 43 4f 4e 4e 45 43 54 2d 37 31 32 34 NETCONNECT-7124

PSK - hexdump(len=32): [REMOVED]

Priority group 0

id=0 ssid='NETCONNECT-7124'

Initializing interface (2) 'eth1'

SIOCGIWRANGE: WE(compiled)=22 WE(source)=22 enc_capa=0x0

capabilities: key_mgmt 0x0 enc 0x3 flags 0x0

WEXT: Operstate: linkmode=1, operstate=5

Own MAC address: 00:04:75:db:c8:e7

wpa_driver_wext_set_wpa

Driver does not support 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

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])

Wireless event: cmd=0x8b06 len=8

State: DISCONNECTED -> SCANNING

Starting AP scan (broadcast SSID)

Trying to get current scan results first without requesting a new scan to speed up initial association

ioctl[SIOCGIWSCAN]: Resource temporarily unavailable

Failed to get scan results

Failed to get scan results - try scanning again

Setting scan request: 0 sec 0 usec

Starting AP scan (broadcast SSID)

Scan requested (ret=0) - scan timeout 5 seconds

EAPOL: disable timer tick

Scan timeout - try to get results

Received 317 bytes of scan results (4 BSSes)

CTRL-EVENT-SCAN-RESULTS

Selecting BSS from priority group 0

Try to find WPA-enabled AP

0: 00:1c:28:32:ae:49 ssid='NETCONNECT-7124' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - no WPA/RSN IE

1: 00:24:fe:05:9a:f6 ssid='WLAN-0024FE059AF6' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - no WPA/RSN IE

2: 00:23:08:bd:31:82 ssid='EasyBox-BD3114' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - no WPA/RSN IE

3: 00:1c:28:3b:76:c4 ssid='NETCONNECT-2815' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - no WPA/RSN IE

Try to find non-WPA AP

0: 00:1c:28:32:ae:49 ssid='NETCONNECT-7124' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - non-WPA network not allowed

1: 00:24:fe:05:9a:f6 ssid='WLAN-0024FE059AF6' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - SSID mismatch

2: 00:23:08:bd:31:82 ssid='EasyBox-BD3114' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - SSID mismatch

3: 00:1c:28:3b:76:c4 ssid='NETCONNECT-2815' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - SSID mismatch

No suitable AP found.

Setting scan request: 5 sec 0 usec

CTRL-EVENT-TERMINATING - signal 2 received

Removing interface eth1

State: SCANNING -> DISCONNECTED

wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)

WEXT: Operstate: linkmode=-1, operstate=5

No keys have been configured - skip key clearing

EAPOL: External notification - portEnabled=0

EAPOL: External notification - portValid=0

wpa_driver_wext_set_wpa

wpa_driver_wext_set_drop_unencrypted

wpa_driver_wext_set_countermeasures

No keys have been configured - skip key clearing

Cancelling scan request

Cancelling authentication timeout

WEXT: Operstate: linkmode=0, operstate=6

 

###################

# output of dmesg -c right afterwards:

[ 2708.909307] firmware: requesting atmel_at76c502_3com-wpa.bin

[ 2708.965040] firmware: requesting atmel_at76c502_3com-wpa.bin

[ 2709.021459] firmware: requesting atmel_at76c502_3com-wpa.bin

[ 2709.076660] firmware: requesting atmel_at76c502_3com-wpa.bin

[ 2709.130879] firmware: requesting atmel_at76c502_3com-wpa.bin

[ 2709.181579] firmware: requesting atmel_at76c502_3com-wpa.bin

[ 2719.140047] firmware: requesting atmel_at76c502_3com-wpa.bin

[ 2719.198201] firmware: requesting atmel_at76c502_3com-wpa.bin

 

###################

# output of wpa_supplicant -D atmel -c /etc/wpa_supplicant/wpa_supplicant.conf -i eth1 -dd:

Initializing interface 'eth1' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'atmel' ctrl_interface 'N/A' bridge 'N/A'

Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'

Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'

ctrl_interface='/var/run/wpa_supplicant'

Line: 3 - start of a new network block

ssid - hexdump_ascii(len=15):

4e 45 54 43 4f 4e 4e 45 43 54 2d 37 31 32 34 NETCONNECT-7124

PSK - hexdump(len=32): [REMOVED]

Priority group 0

id=0 ssid='NETCONNECT-7124'

Initializing interface (2) 'eth1'

SIOCGIWRANGE: WE(compiled)=22 WE(source)=22 enc_capa=0x0

capabilities: key_mgmt 0x0 enc 0x3 flags 0x0

WEXT: Operstate: linkmode=1, operstate=5

Own MAC address: 00:04:75:db:c8:e7

wpa_driver_atmel_set_wpa eth1

wpa_driver_atmel_set_wpa: enabled=1

ioctl[ATMEL_WPA_IOCTL_PARAM]: Operation not supported

ioctl[ATMEL_WPA_IOCTL_PARAM]: Operation not supported

Driver does not support WPA.

wpa_driver_atmel_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0

ioctl[ATMEL_WPA_IOCTL]: Invalid argument

Failed to set encryption.

wpa_driver_atmel_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0

ioctl[ATMEL_WPA_IOCTL]: Invalid argument

Failed to set encryption.

wpa_driver_atmel_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0

ioctl[ATMEL_WPA_IOCTL]: Invalid argument

Failed to set encryption.

wpa_driver_atmel_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0

ioctl[ATMEL_WPA_IOCTL]: Invalid argument

Failed to set encryption.

wpa_driver_atmel_set_countermeasures - not yet implemented

wpa_driver_atmel_set_drop_unencrypted - not yet implemented

RSN: flushing PMKID list in the driver

Setting scan request: 0 sec 100000 usec

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])

Wireless event: cmd=0x8b06 len=8

State: DISCONNECTED -> SCANNING

Starting AP scan (broadcast SSID)

Trying to get current scan results first without requesting a new scan to speed up initial association

ioctl[SIOCGIWSCAN]: Resource temporarily unavailable

Failed to get scan results

Failed to get scan results - try scanning again

Setting scan request: 0 sec 0 usec

Starting AP scan (broadcast SSID)

Scan requested (ret=0) - scan timeout 5 seconds

EAPOL: disable timer tick

Scan timeout - try to get results

Received 318 bytes of scan results (4 BSSes)

CTRL-EVENT-SCAN-RESULTS

Selecting BSS from priority group 0

Try to find WPA-enabled AP

0: 00:1c:28:32:ae:49 ssid='NETCONNECT-7124' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - no WPA/RSN IE

1: 00:24:fe:05:9a:f6 ssid='WLAN-0024FE059AF6' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - no WPA/RSN IE

2: 00:1c:28:35:62:31 ssid='NETCONNECT-3544' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - no WPA/RSN IE

3: 00:1c:28:3b:76:c4 ssid='NETCONNECT-2815' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - no WPA/RSN IE

Try to find non-WPA AP

0: 00:1c:28:32:ae:49 ssid='NETCONNECT-7124' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - non-WPA network not allowed

1: 00:24:fe:05:9a:f6 ssid='WLAN-0024FE059AF6' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - SSID mismatch

2: 00:1c:28:35:62:31 ssid='NETCONNECT-3544' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - SSID mismatch

3: 00:1c:28:3b:76:c4 ssid='NETCONNECT-2815' wpa_ie_len=0 rsn_ie_len=0 caps=0x11

skip - SSID mismatch

No suitable AP found.

Setting scan request: 5 sec 0 usec

CTRL-EVENT-TERMINATING - signal 2 received

Removing interface eth1

State: SCANNING -> DISCONNECTED

wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)

WEXT: Operstate: linkmode=-1, operstate=5

No keys have been configured - skip key clearing

EAPOL: External notification - portEnabled=0

EAPOL: External notification - portValid=0

wpa_driver_atmel_set_wpa eth1

wpa_driver_atmel_set_wpa: enabled=0

ioctl[ATMEL_WPA_IOCTL_PARAM]: Operation not supported

ioctl[ATMEL_WPA_IOCTL_PARAM]: Operation not supported

Failed to disable WPA in the driver.

wpa_driver_atmel_set_drop_unencrypted - not yet implemented

wpa_driver_atmel_set_countermeasures - not yet implemented

No keys have been configured - skip key clearing

Cancelling scan request

Cancelling authentication timeout

WEXT: Operstate: linkmode=0, operstate=6

 

###################

# output of dmesg right afterwards:

[ 3939.174130] firmware: requesting atmel_at76c502_3com-wpa.bin

 

  

WEB.DE DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt mit    
gratis Handy-Flat! http://produkte.web.de/go/DSL_Doppel_Flatrate/2

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Reply to: