You are not logged in.

#1 2010-11-16 14:06:41

ferda
Member
Registered: 2010-02-05
Posts: 67

[SOLVED] WPA-EAP connection fails

At university I use WPA-EAP for connecting to the wireless network.

At boot time, the wifi card can't associate with the router, but when I reload the iwlagn module, it works.
there are no problems at home with WPA-PSK.

can you help me with that?

# wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:1a:e3:d2:3f:01 (SSID='eduroam' freq=2412 MHz)
Associated with 00:1a:e3:d2:3f:01
CTRL-EVENT-EAP-STARTED EAP authentication started
CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
CTRL-EVENT-EAP-PEER-CERT depth=2 subject='/DC=<...>/DC=<...>'
CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/DC=<...>/DC=<...>'
CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/CN=<...>'
EAP-MSCHAPV2: Authentication succeeded
EAP-TLV: TLV Result - Success - EAP-TLV/Phase2 Completed
CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
ioctl[SIOCSIWENCODEEXT]: Invalid argument
WPA: Failed to set PTK to the driver (alg=2 keylen=32 bssid=00:1a:e3:d2:3f:01)
CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Trying to associate with 00:1a:e3:d2:3f:01 (SSID='eduroam' freq=2412 MHz)
Associated with 00:1a:e3:d2:3f:01
ioctl[SIOCSIWENCODEEXT]: Invalid argument
WPA: Failed to set PTK to the driver (alg=2 keylen=32 bssid=00:1a:e3:d2:3f:01)
CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Trying to associate with 00:1a:e3:d2:3f:01 (SSID='eduroam' freq=2412 MHz)
Associated with 00:1a:e3:d2:3f:01
ioctl[SIOCSIWENCODEEXT]: Invalid argument
WPA: Failed to set PTK to the driver (alg=2 keylen=32 bssid=00:1a:e3:d2:3f:01)
# modprobe -r iwlagn && modprobe iwlagn
# wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 00:1a:e3:d2:3f:01 (SSID='eduroam' freq=2412 MHz)
Associated with 00:1a:e3:d2:3f:01
CTRL-EVENT-EAP-STARTED EAP authentication started
CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
CTRL-EVENT-EAP-PEER-CERT depth=2 subject='/DC=<...>/DC=<...>'
CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/DC=<...>/DC=<...>'
CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/CN=<...>'
EAP-MSCHAPV2: Authentication succeeded
EAP-TLV: TLV Result - Success - EAP-TLV/Phase2 Completed
CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
WPA: Key negotiation completed with 00:1a:e3:d2:3f:01 [PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:1a:e3:d2:3f:01 completed (auth) [id=5 id_str=]
lspci -v
...
03:00.0 Network controller: Intel Corporation Wireless WiFi Link 5100
    Subsystem: Intel Corporation PRO/Wireless 5100AGN Network Connection
    Flags: bus master, fast devsel, latency 0, IRQ 47
    Memory at fcffe000 (64-bit, non-prefetchable) [size=8K]
    Capabilities: [c8] Power Management version 3
    Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [e0] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Device Serial Number <bssid>
    Kernel driver in use: iwlagn
    Kernel modules: iwlagn
cat /etc/wpa_supplicant.conf
...
network={
    ssid="eduroam"
    proto=RSN
    key_mgmt=WPA-EAP
    pairwise=TKIP
    group=TKIP WEP104 WEP40
    eap=PEAP
    identity="me@my-university.com"
    password="password"
    ca_cert="/etc/eduroam.pem"
    phase2="auth=MSCHAPV2"
}
# uname -a
Linux 2.6.36-ARCH #1 SMP PREEMPT Sun Oct 31 09:29:11 CET 2010 x86_64 Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz GenuineIntel GNU/Linux
dmesg | grep wl
iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
iwlagn: Copyright(c) 2003-2010 Intel Corporation
iwlagn 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
iwlagn 0000:03:00.0: setting latency timer to 64
iwlagn 0000:03:00.0: Detected Intel(R) WiFi Link 5100 AGN, REV=0x54
iwlagn 0000:03:00.0: device EEPROM VER=0x11f, CALIB=0x4
iwlagn 0000:03:00.0: Tunable channels: 13 802.11bg, 24 802.11a channels
iwlagn 0000:03:00.0: irq 47 for MSI/MSI-X
iwlagn 0000:03:00.0: loaded firmware version 8.24.2.12
phy0: Selected rate control algorithm 'iwl-agn-rs'
wlan0: authenticate with 00:1a:e3:d2:3f:01 (try 1)
wlan0: authenticated
wlan0: associate with 00:1a:e3:d2:3f:01 (try 1)
wlan0: RX AssocResp from 00:1a:e3:d2:3f:01 (capab=0x431 status=0 aid=1)
wlan0: associated
wlan0: deauthenticating from 00:1a:e3:d2:3f:01 by local choice (reason=1)
wlan0: authenticate with 00:1a:e3:d2:3f:0e (try 1)
wlan0: authenticate with 00:1a:e3:d2:3f:0e (try 2)
wlan0: authenticated
wlan0: associate with 00:1a:e3:d2:3f:0e (try 1)
wlan0: RX AssocResp from 00:1a:e3:d2:3f:0e (capab=0x11 status=0 aid=2)
wlan0: associated
wlan0: deauthenticating from 00:1a:e3:d2:3f:0e by local choice (reason=3)

edit: added dmesg output

Last edited by ferda (2010-11-17 14:06:45)

Offline

#2 2010-11-17 03:01:30

parintachin
Member
Registered: 2009-05-25
Posts: 72

Re: [SOLVED] WPA-EAP connection fails

try this works for me flawless
        ssid="eduroam"
        scan_ssid=1
        key_mgmt=WPA-EAP
        eap=PEAP
        identity="me@my_university.com"
        password="yourpassword"
        phase1="peaplabel=0"
        phase2="auth=MSCHAPV2"

Offline

#3 2010-11-17 13:55:11

ferda
Member
Registered: 2010-02-05
Posts: 67

Re: [SOLVED] WPA-EAP connection fails

thanks for your suggestion, i changed the file according to your post.
Now it looks like that:

network={
    ssid="eduroam"
    scan_ssid=1
    key_mgmt=WPA-EAP
    eap=PEAP
    identity="me@my-university.com"
    password="password"
    ca_cert="/etc/cert/eduroam.pem"
    phase1="peaplabel=0"
    phase2="auth=MSCHAPV2"
}

I even specified the bssid of the access point, but it was no use. I think this problem is not related to a mistake in the configuration file as it works after reloading the module and had worked before.
Anyway thanks for your suggestion.

Offline

#4 2010-11-17 14:07:40

ferda
Member
Registered: 2010-02-05
Posts: 67

Re: [SOLVED] WPA-EAP connection fails

i solved the problem by removing iwlagn from the modules array in mkinitcpio.conf

Offline

Board footer

Powered by FluxBB