Problem mit wpa_supplicant und madwifi

Marc Bratmann mcbeee at gmail.com
Sat Nov 4 12:01:08 UTC 2006


Hallo,

ich habe Probleme mit der Installation meiner WLAN-Verbindung. Die
Ausgangssituation:

Hard- und Software

Netgear WG311T (Atheros Chipset)
Speedport W700V (Router)
2.6.18-1.2200.fc5 (Fedora Core 5)
wireless-tools (Version 28)
madwifi (Version 0.9.2)
wpa_supplicant (Version 0.4.9)

Routerkonfiguration

SSID: KeepOut
Channel: Automatic
Mode: 802.11g + 802.11b (Mixed Mode)
Encryption: WPA2 with Pre-shared key
DHCP: enabled

Netzwerkstatus

[root at localhost marc]# ifconfig -a
ath0      Link encap:Ethernet  Hardware Adresse 00:14:6C:8C:9F:22
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:23 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42 errors:19 dropped:19 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:3105 (3.0 KiB)  TX bytes:5395 (5.2 KiB)

wifi0     Link encap:UNSPEC  Hardware Adresse
00-14-6C-8C-9F-22-78-02-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27670 errors:0 dropped:0 overruns:0 frame:25609
          TX packets:2399 errors:3 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:199
          RX bytes:3582554 (3.4 MiB)  TX bytes:126853 (123.8 KiB)
          Interrupt:11 Speicher:e0960000-e0970000

[root at localhost marc]# iwconfig
wifi0     no wireless extensions.

Warning: Driver for device ath0 has been compiled with version 20
of Wireless Extension, while this program supports up to version 19.
Some things may be broken...

ath0      IEEE 802.11g  ESSID:"KeepOut"  Nickname:"localhost.localdomain"
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power:18 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/94  Signal level=-95 dBm  Noise level=-95 dBm
          Rx invalid nwid:26519  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

[root at localhost marc]# iwlist ath0 scan
Warning: Driver for device ath0 has been compiled with version 20
of Wireless Extension, while this program supports up to version 19.
Some things may be broken...

ath0      Scan completed :
          Cell 01 - Address: 00:12:BF:7F:5C:B9
                    ESSID:"KeepOut"
                    Mode:Master
                    Frequency:2.412 GHz (Channel 1)
                    Quality=37/94  Signal level=-58 dBm  Noise level=-95 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK

Extra:wme_ie=dd180050f2020101000003a4000027a4000042435e0062322f00

Konfigurationsdateien

[root at localhost marc]# cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
eapol_version=2
ap_scan=1
fast_reauth=1

# Home WLAN
network={
        scan_ssid=1
        proto=WPA RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP

        priority=2
        ssid="KeepOut"
        psk=[...]
}

[root at localhost marc]# cat /etc/sysconfig/network-scripts/ifcfg-ath0
IPV6INIT=no
ONBOOT=yes
USERCTL=no
PEERDNS=yes
TYPE=Wireless
DEVICE=ath0
HWADDR=00:14:6C:8C:9F:22
BOOTPROTO=dhcp
ESSID=KeepOut
MODE=Managed
RATE=Auto
WPA=yes

Problem beim Aufruf von wpa_supplicant

[root at localhost marc]# wpa_supplicant -d
-c/etc/wpa_supplicant/wpa_supplicant.conf -iath0 -Dmadwifi
Initializing interface 'ath0' conf '/etc/wpa_supplicant/wpa_supplicant.conf'
driver 'madwifi' ctrl_interface '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'
ctrl_interface_group=10 (from group name 'wheel')
eapol_version=2
ap_scan=1
fast_reauth=1
Priority group 2
   id=0 ssid='KeepOut'
Initializing interface (2) 'ath0'
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
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=20 WE(source)=13 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
Own MAC address: 00:14:6c:8c:9f:22
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_set_countermeasures: enabled=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Added interface ath0
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=7):
     4b 65 65 70 4f 75 74                              KeepOut
Wireless event: cmd=0x8b1a len=16
Wireless event: cmd=0x8b19 len=8
Received 738 bytes of scan results (3 BSSes)
Scan results: 3
Selecting BSS from priority group 2
0: 00:12:bf:7f:5c:b9 ssid='KeepOut' wpa_ie_len=0 rsn_ie_len=22 caps=0x11
   selected based on RSN IE
Trying to associate with 00:12:bf:7f:5c:b9 (SSID='KeepOut' freq=2412 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
RSN: using IEEE 802.11i/D9.0
WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2
WPA: clearing AP WPA IE
WPA: set AP RSN IE - 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
WPA: using GTK CCMP
WPA: using PTK CCMP
WPA: using KEY_MGMT WPA-PSK
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_madwifi_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
wpa_driver_madwifi_associate
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
Association request to the driver failed
Setting authentication timeout: 15 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RSN: Ignored PMKID candidate without preauth flag
Wireless event: cmd=0x8b1a len=16
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:12:bf:7f:5c:b9
State: ASSOCIATING -> ASSOCIATED
Associated to a new BSS: BSSID=00:12:bf:7f:5c:b9
No keys have been configured - skip key clearing
Associated with 00:12:bf:7f:5c:b9
WPA: Association event - clear replay counter
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
RX EAPOL from 00:12:bf:7f:5c:b9
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=117
  EAPOL-Key type=2
  key_info 0x8a (ver=2 keyidx=0 rsvd=0 Pairwise Ack)
  key_length=16 key_data_length=22
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 0a
  key_nonce - hexdump(len=32): 54 66 68 a5 67 fa 3b ed 4f 94 61 35 11 9b fa
fa c2 d3 a9 f1 7f e6 55 c0 2f f4 64 09 64 04 ba 7a
  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
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:12:bf:7f:5c:b9 (ver=2)
RSN: msg 1/4 key data - hexdump(len=22): dd 14 00 0f ac 04 f4 3b e6 c6 a6 54
e1 a7 1a 3c 9a 61 81 a0 68 e4
RSN: PMKID from Authenticator - hexdump(len=16): f4 3b e6 c6 a6 54 e1 a7 1a
3c 9a 61 81 a0 68 e4
RSN: no matching PMKID found
WPA: WPA IE for msg 2/4 - 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
WPA: Renewed SNonce - hexdump(len=32): d2 4c 5f cd a5 25 9f a3 cf 54 2f 67
d6 08 5e fb 7c 51 53 a2 89 a2 fe 49 c6 68 2f 0f 68 44 1a f1
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: Sending EAPOL-Key 2/4
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
RX EAPOL from 00:12:bf:7f:5c:b9
IEEE 802.1X RX: version=1 type=3 length=117
  EAPOL-Key type=2
  key_info 0x8a (ver=2 keyidx=0 rsvd=0 Pairwise Ack)
  key_length=16 key_data_length=22
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 0b
  key_nonce - hexdump(len=32): 54 66 68 a5 67 fa 3b ed 4f 94 61 35 11 9b fa
fa c2 d3 a9 f1 7f e6 55 c0 2f f4 64 09 64 04 ba 7a
  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
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:12:bf:7f:5c:b9 (ver=2)
RSN: msg 1/4 key data - hexdump(len=22): dd 14 00 0f ac 04 f4 3b e6 c6 a6 54
e1 a7 1a 3c 9a 61 81 a0 68 e4
RSN: PMKID from Authenticator - hexdump(len=16): f4 3b e6 c6 a6 54 e1 a7 1a
3c 9a 61 81 a0 68 e4
RSN: no matching PMKID found
WPA: WPA IE for msg 2/4 - 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
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: Sending EAPOL-Key 2/4
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface ath0
State: 4WAY_HANDSHAKE -> DISCONNECTED
wpa_driver_madwifi_deauthenticate
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=0
wpa_driver_madwifi_set_countermeasures: enabled=0
No keys have been configured - skip key clearing
Cancelling scan request

Problemlösung

Keine Ahnung... Offensichtlich kommt die WPA2 Verbindung nicht hoch. Einige
Logmeldungen deuten auf Probleme hin "Association request to the driver
failed". Aber was fange ich damit nun an und wie löse ich das Problem?
Vielleicht mache ich auch ganz andere Fehler. Bin leider noch relativ
unerfahren unter Linux...

Vielen Dank für Eure Hilfe!

Besten Gruß,
Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-de-list/attachments/20061104/45b9860f/attachment.htm>


More information about the Fedora-de-list mailing list