GELÖST: wpa_supplicant verbindet sich nicht mit AccessPoint

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
Benutzeravatar
Nelson
Beiträge: 233
Registriert: 25.05.2008 10:40:28
Lizenz eigener Beiträge: GNU Free Documentation License
Wohnort: Stuttgart

GELÖST: wpa_supplicant verbindet sich nicht mit AccessPoint

Beitrag von Nelson » 25.05.2008 11:18:59

Hi,

ich habe unter Debian "Lenny" Probleme mit dem Einrichten von wpa_supplicant und dem anschließenden Verbinden mit dem AccessPoint. Als WLAN-Karte habe ich in meinem Laptop eine Conceptronic C54RC (RaLink RT2561/RT61 rev B 802.11g) und als AP den DSL-Router LINKSYS WRT54GSV4.
Auf dem Router habe ich folgende Wireless-Einstellungen gemacht
  • Security Mode: WPA2 Personal
    WPA Algorithms: TKIP+AES
    Wireless Network Mode: Mixed
Was unter Windows auch mit dieser Karte läuft.
Ich habe unter http://rt2x00.serialmonkey.com/rt61-cvs-daily.tar.gz den Treiber für den RaLink-Chip heruntergeladen und installiert, so daß die Karte erkannt wird:

Code: Alles auswählen

# iwconfig
lo        no wireless extensions.

eth1      no wireless extensions.

wlan0     RT61 Wireless  ESSID:""  Nickname:""
          Mode:Managed  Frequency:2.412 GHz  Bit Rate=54 Mb/s
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Link Quality=0/100  Signal level:-121 dBm  Noise level:-111 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
wpa_supplicant habe ich wie folgt konfiguriert:
/etc/wpa_supplicant/wpa_supplicant.conf

Code: Alles auswählen

# WPA-PSK/TKIP

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

network={
        ssid="LINKSYS"
        scan_ssid=1
        proto=WPA2
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=TKIP CCMP
        #psk="Passwort"
        psk=ccc6a80e3a28b0a91d38e0c3c9c5e6e672645656980436bf4ba74e89e031d929
        priority=2
}
Wenn ich einen Scan durchführe, erhalte folgende Informationen

Code: Alles auswählen

# iwlist scanning
lo        Interface doesn't support scanning.

eth1      Interface doesn't support scanning.

wlan0     Scan completed :
          Cell 01 - Address: 00:14:BF:A5:74:99
                    ESSID:"LINKSYS"
                    Mode:Managed
                    Channel:4
                    Encryption key:on
                    Bit Rates:132 Mb/s
                    Quality:0/100  Signal level:-31 dBm  Noise level:0 dBm
          Cell 02 - Address: 00:15:0C:8F:3D:28
                    ESSID:"Telematic_Sprinter"
                    Mode:Managed
                    Channel:6
                    Encryption key:on
                    Bit Rates:6 Mb/s
                    Quality:0/100  Signal level:-71 dBm  Noise level:0 dBm
Hier irritiert mich schon einmal, daß ich entgegen dem HowTo http://wiki.ubuntuusers.de/WLAN/wpa_supplicant keine Informationen über die WLAN-Verschlüsselung erhalte. Und wenn ich jetzt den wpa_supplicant teste, dann bekomme ich keinen Kontakt zu meinem AP.

Code: Alles auswählen

wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -dd
liefert die Ausgabe

Code: Alles auswählen

Initializing interface 'wlan0' 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'
eapol_version=1
ap_scan=1
Line: 7 - start of a new network block
ssid - hexdump_ascii(len=13):     49 54 2d 4c 49 4e 55 58 4d 41 4b 45 52            LINKSYS
scan_ssid=1 (0x1)
proto: 0x2
key_mgmt: 0x2
pairwise: 0x10
group: 0x18
PSK - hexdump(len=32): [REMOVED]
priority=2 (0x2)
Priority group 2
   id=0 ssid='LINKSYS'
Initializing interface (2) 'wlan0'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=14 enc_capa=0x0
  capabilities: key_mgmt 0x0 enc 0x3
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:80:5a:50:97:e1
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
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
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
Using existing control interface directory.
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

Failed to add interface wlan0
State: DISCONNECTED -> 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
Failed to disable WPA in the driver.
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
Offenbar hat das mit dem wext-Treiber zu tun. Ich weiß jetzt aber nicht, welcher mit rt61 dann funktioniert oder ob das doch ein Konfigurationfehler von mir ist.
Weiß jemand hierzu Rat?

Vielen Dank!
Grüsse
Nelson
Zuletzt geändert von Nelson am 24.06.2008 17:50:47, insgesamt 1-mal geändert.
Openness prevails!
LINUX
Where open minds meet!

Benutzeravatar
habakug
Moderator
Beiträge: 4314
Registriert: 23.10.2004 13:08:41
Lizenz eigener Beiträge: MIT Lizenz

Re: wpa_supplicant verbindet sich nicht mit AccessPoint

Beitrag von habakug » 25.05.2008 12:13:38

Hallo!

Wenn du die README in deinem Treiberpaket gelesen hättest, wärest du auf folgenden Hinweis gestoßen:
wpa_supplicant is a userland WPA/WPA2/802.1X layer. This driver is
not compatible with it. As most wpa_supplicant features are
embedded into our driver, you should not need it though.
Hier sollte mit "iwpriv" gearbeitet werden, z.B.:

Code: Alles auswählen

c) WPA2 (802.11i)
          Set the authentication mode:
             # iwpriv wlan0 set AuthMode=WPA2PSK
          Set the encryption key:
             # iwpriv wlan0 set WPAPSK=<KEY>
          Set the encryption type:
             # iwpriv wlan0 set EncrypType=AES
Gruß, habakug

[1] README
[2] iwpriv_usage.txt
( # = root | $ = user | !! = mod ) (Vor der PN) (Debianforum-Wiki) (NoPaste)

Benutzeravatar
Nelson
Beiträge: 233
Registriert: 25.05.2008 10:40:28
Lizenz eigener Beiträge: GNU Free Documentation License
Wohnort: Stuttgart

Re: wpa_supplicant verbindet sich nicht mit AccessPoint

Beitrag von Nelson » 25.05.2008 16:26:03

Tja, 8O das ist peinlich. Aber wo Du Recht hast, hast Du Recht. Ich habe das ganz offensichtlich nicht mehr gelesen.
Okay, jetzt funkt es ja, so wie es mit WPA2 auch soll.

Vielen Dank und Grüsse
von
Capt'n Nelson
Openness prevails!
LINUX
Where open minds meet!

Antworten