wlan mit wpa_supplicant - mal wieder

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
aliceIW
Beiträge: 18
Registriert: 29.08.2008 19:47:35

wlan mit wpa_supplicant - mal wieder

Beitrag von aliceIW » 10.07.2009 11:45:58

Hallo liebes Forum,

wie wohl häufiger, habe auch ich Probleme mein wlan mit wpa_supplicant zum Laufen zu bringen, und schon einiges aus anderen Threads versucht, aber nichts klappt.

Vor einem Jahr hat alles mit WEP wunderbar funktioniert, entweder liegts jetzt am WPA oder am Versionsupdate.

Ich habe Debian testing ( 2.6.26-2-686), als wlan-Karten-Treiber benutze ich ndiswrapper 1.54, wpa_supplicant v0.6.9.

Meine interfaces sieht so aus:

Code: Alles auswählen

auto wlan1
iface wlan1 inet dhcp
        wpa-driver wext
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Und meine wpa_supplicant.conf so:

Code: Alles auswählen

ap_scan=2
network={
        ssid="cooper"
        key_mgmt=WPA-PSK
         psk="geheim"
 #scan_ssid=1
#       proto=WPA
#       auth_alg=OPEN  
}
Ich habe bereits den aktuellen ndiswrapper und wpa_supplicant eingerichtet, den Befehl wpa_cli stop und receonnect versucht und schon einige Varianten in der wpa_supplicant.conf bwz. in der interfaces durchprobiert. Unter anderem ap_scan=1, und mit und ohne die auskommentierten Zeilen, und auch die Sachen aus der wpa_supplicant.conf direkt in der interfaces einzutragen. Es macht keinen Unterschied ob ich das Netz mit ifup wlan0 oder wpa_supplicant oder wpa_cli zu starten versuche.

Ich habe unten die gesame Ausgabe angehängt, aufgefallen ist mir die Zeile "last message: assocation reques to the driver failed", die mir aber auch nicht viel sagt. Hat jemand eine Idee, wo ich weitersuchen kann? Ich möchte eigentlich bei der Konsole bleiben.

Bin wirklich dankbar für alle Hinweise,
viele Grüße
aliceIW

Code: Alles auswählen

froschi:/home/cook# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -dd   
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'
ap_scan=2
Line: 3 - start of a new network block
ssid - hexdump_ascii(len=6):
     63 6f 6f 70 65 72                                 cooper          
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=11): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='cooper'
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:1d:1a:01:31:71
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): 36 5c 4a f4 e4 d5 58 bc 88 bf                                    
76 df 03 17 0a b2
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 wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=14
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'cooper'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 30 pairwise 24 key_mgmt 2 proto 2
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK CCMP
WPA: using PTK CCMP
WPA: using KEY_MGMT WPA-PSK
WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00                                    
0f ac 04 01 00 00 0f ac 02 00 00
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
Association request to the driver failed
Setting authentication timeout: 5 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])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=14
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=14
EAPOL: disable timer tick
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=14
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Added BSSID 00:00:00:00:00:00 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: 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
EAPOL: External notification - EAP success=0
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:00:00:00:00:00 blacklist count incremented to 2
No keys have been configured - skip key clearing
State: DISCONNECTED -> 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
EAPOL: External notification - EAP success=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'cooper'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 30 pairwise 24 key_mgmt 2 proto 2
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK CCMP
WPA: using PTK CCMP
WPA: using KEY_MGMT WPA-PSK
WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00                                    
0f ac 04 01 00 00 0f ac 02 00 00
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
Association request to the driver failed
Setting authentication timeout: 5 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])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=14
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=14
^CCTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan0
State: ASSOCIATING -> 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
Removed BSSID 00:00:00:00:00:00 from blacklist (clear)
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6
Bzw. das gleiche mit wpa_cli:

Code: Alles auswählen

> reconnect
<2>CTRL-EVENT-SCAN-RESULTS 
OK
> <2>CTRL-EVENT-SCAN-RESULTS 
<2>Trying to associate with 00:1a:4f:43:13:d1 (SSID='cooper' freq=2462 MHz)
<2>Association request to the driver failed
<2>Authentication with 00:1a:4f:43:13:d1 timed out.
<2>CTRL-EVENT-SCAN-RESULTS 
<2>Trying to associate with 00:1a:4f:43:13:d1 (SSID='cooper' freq=2462 MHz)
<2>Association request to the driver failed
<2>Authentication with 00:1a:4f:43:13:d1 timed out.

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

Re: wlan mit wpa_supplicant - mal wieder

Beitrag von habakug » 11.07.2009 10:07:35

Hallo!
aliceIW hat geschrieben:auto wlan1
iface wlan1 inet dhcp
Warum rufst du dann ein anderes Gerät auf:
aliceIW hat geschrieben:froschi:/home/cook# wpa_supplicant -Dwext -iwlan0
Wieso gibt es überhaupt "wlan0" und "wlan1"?
Du solltest die "wpa_supplicant.conf" so erstellen:

Code: Alles auswählen

mv /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf_sik
wpa_passphrase "ESSID" geheimesPasswort >> /etc/wpa_supplicant/wpa_supplicant.conf
Gruß, habakug
( # = root | $ = user | !! = mod ) (Vor der PN) (Debianforum-Wiki) (NoPaste)


aliceIW
Beiträge: 18
Registriert: 29.08.2008 19:47:35

Re: wlan mit wpa_supplicant - mal wieder

Beitrag von aliceIW » 11.07.2009 21:48:25

Hallo!
Vielen Dank für Eure Antworten.
Ich habe den Link befolgt, aber seltsamerweise klappt schon
iwconfig wlan0 ap MAC-Adresse
nicht. Er gibt keinen Kommentar dazu aus, und ließ sich nicht davon abbringen, immer mit demselben bestimmten Netz assoziiert zu bleiben. Wahrscheinlich lag da auch irgendwo der Hund begraben, ich weiß nur nicht wo suchen.

Das wlan1 habe ich, da ich der USB-wlan-stick von meinem Mitbewohner immer als wlan1 angemeldet wird. ich weiß zwar nicht warum, war mir aber bisher auch wurst..

Ich habe es jetzt mit wcid und wicd-curses hinbekommen. Aber es wurmt mich schon, daß ich das anders nicht klappt. Wenn also jemand noch Ideen hat, wo ich gucken kann...

Viele Grüße,
aIW

Benutzeravatar
luusa
Beiträge: 64
Registriert: 13.10.2002 20:11:20

Re: wlan mit wpa_supplicant - mal wieder

Beitrag von luusa » 22.07.2009 10:03:33

aliceIW hat geschrieben:Ich habe es jetzt mit wcid und wicd-curses hinbekommen. Aber es wurmt mich schon, daß ich das anders nicht klappt. Wenn also jemand noch Ideen hat, wo ich gucken kann...
Guck mal hier!

Bei mir läuft es jetzt (stabil).

Luusa
nicht jeder ist ein luusa

Antworten