Date: Sat, 14 Feb 2009 17:23:42 -0500 From: Jason Morgan <jwm-freebsd-net@skepsi.net> To: freebsd-net@freebsd.org Subject: WPA-EAP (ath driver): trouble maintaining connection Message-ID: <20090214222342.GA45141@skepsi.net>
next in thread | raw e-mail | index | archive | help
Hello, I have been having trouble maintaining a wireless connection at my university, which uses the WPA-EAP protocol. I have played with my wpa_supplicant.conf file, but haven't found anything that works. I don't seems to have any trouble at home using a Linksys AP and WPA-PSK. I was hoping someone here could point me in the right direction---I am not very familiar with WPA and wireless networking. Error messages and other relevant information below. (You will notice that I lose connection every 5-10 minutes.) Thanks in advance. $ uname -a FreeBSD sofie.skepsi.net 7.1-STABLE FreeBSD 7.1-STABLE #3: Sun Feb 1 13:00:56 EST 2009 root@sofie.skepsi.net:/usr/obj/usr/src/sys/SOFIE amd64 $ cat /etc/wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel eapol_version=1 ap_scan=1 fast_reauth=1 network={ ssid="osuwireless" scan_ssid=1 key_mgmt=WPA-EAP eap=PEAP identity="xxx" password="xxx" phase1="peaplabel=0" phase2="auth-MSCHAPV2" priority=1 } $ cat /etc/dhclient.conf # ath0 interface "ath0" { request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name; require subnet-mask, domain-name-servers; } $ cat /var/log/messages <snip> Feb 14 15:50:09 sofie kernel: ath0: link state changed to DOWN Feb 14 15:50:09 sofie wpa_supplicant[403]: Trying to associate with 00:0b:86:58:04:00 (SSID='osuwireless' freq=2437 MHz) Feb 14 15:50:09 sofie wpa_supplicant[403]: CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys Feb 14 15:50:19 sofie wpa_supplicant[403]: Authentication with 00:00:00:00:00:00 timed out. Feb 14 15:50:27 sofie wpa_supplicant[403]: Trying to associate with 00:0b:86:58:02:80 (SSID='osuwireless' freq=2437 MHz) Feb 14 15:50:27 sofie wpa_supplicant[403]: Association request to the driver failed Feb 14 15:50:32 sofie wpa_supplicant[403]: Authentication with 00:0b:86:58:02:80 timed out. Feb 14 15:50:39 sofie wpa_supplicant[403]: Trying to associate with 00:0b:86:5d:3a:40 (SSID='osuwireless' freq=2412 MHz) Feb 14 15:50:40 sofie kernel: ath0: link state changed to UP Feb 14 15:50:40 sofie wpa_supplicant[403]: Associated with 00:0b:86:5d:3a:40 Feb 14 15:50:40 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-STARTED EAP authentication started Feb 14 15:50:40 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected Feb 14 15:50:40 sofie wpa_supplicant[403]: OpenSSL: tls_connection_handshake - Failed to read possible Application Data error:00000000:lib(0):func(0):reason(0) Feb 14 15:50:40 sofie wpa_supplicant[403]: EAP-MSCHAPV2: Authentication succeeded Feb 14 15:50:40 sofie wpa_supplicant[403]: EAP-TLV: TLV Result - Success - EAP-TLV/Phase2 Completed Feb 14 15:50:40 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully Feb 14 15:50:40 sofie wpa_supplicant[403]: WPA: Key negotiation completed with 00:0b:86:5d:3a:40 [PTK=TKIP GTK=TKIP] Feb 14 15:50:40 sofie wpa_supplicant[403]: CTRL-EVENT-CONNECTED - Connection to 00:0b:86:5d:3a:40 completed (reauth) [id=1 id_str=] Feb 14 15:50:40 sofie dhclient: New IP Address (ath0): 128.146.115.38 Feb 14 15:50:40 sofie dhclient: New Subnet Mask (ath0): 255.255.255.0 Feb 14 15:50:40 sofie dhclient: New Broadcast Address (ath0): 128.146.115.255 Feb 14 15:50:40 sofie dhclient: New Routers (ath0): 128.146.115.1 Feb 14 15:55:48 sofie wpa_supplicant[403]: Trying to associate with 00:0b:86:58:03:e0 (SSID='osuwireless' freq=2412 MHz) Feb 14 15:55:48 sofie kernel: ath0: link state changed to DOWN Feb 14 15:55:48 sofie wpa_supplicant[403]: CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys Feb 14 15:55:58 sofie wpa_supplicant[403]: Authentication with 00:00:00:00:00:00 timed out. Feb 14 15:56:06 sofie wpa_supplicant[403]: Trying to associate with 00:0b:86:58:04:00 (SSID='osuwireless' freq=2437 MHz) Feb 14 15:56:16 sofie wpa_supplicant[403]: Authentication with 00:0b:86:58:04:00 timed out. Feb 14 15:56:23 sofie wpa_supplicant[403]: Trying to associate with 00:0b:86:58:02:80 (SSID='osuwireless' freq=2437 MHz) Feb 14 15:56:23 sofie wpa_supplicant[403]: Association request to the driver failed Feb 14 15:56:28 sofie wpa_supplicant[403]: Authentication with 00:0b:86:58:02:80 timed out. Feb 14 15:56:36 sofie wpa_supplicant[403]: Trying to associate with 00:0b:86:5d:02:c0 (SSID='osuwireless' freq=2437 MHz) Feb 14 15:56:36 sofie kernel: ath0: link state changed to UP Feb 14 15:56:36 sofie wpa_supplicant[403]: Associated with 00:0b:86:5d:02:c0 Feb 14 15:56:36 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected Feb 14 15:56:36 sofie wpa_supplicant[403]: OpenSSL: tls_connection_handshake - Failed to read possible Application Data error:00000000:lib(0):func(0):reason(0) Feb 14 15:56:43 sofie kernel: update_stats: bogus ndx0 -1, max 10, mode 3 Feb 14 15:57:14 sofie last message repeated 6 times Feb 14 15:57:18 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-STARTED EAP authentication started Feb 14 15:57:18 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected Feb 14 15:57:18 sofie wpa_supplicant[403]: OpenSSL: tls_connection_handshake - Failed to read possible Application Data error:00000000:lib(0):func(0):reason(0) Feb 14 15:57:18 sofie wpa_supplicant[403]: EAP-MSCHAPV2: Authentication succeeded Feb 14 15:57:18 sofie wpa_supplicant[403]: EAP-TLV: TLV Result - Success - EAP-TLV/Phase2 Completed Feb 14 15:57:18 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully Feb 14 15:57:28 sofie kernel: update_stats: bogus ndx0 -1, max 10, mode 3 Feb 14 15:57:29 sofie kernel: ath0: link state changed to DOWN Feb 14 15:57:29 sofie wpa_supplicant[403]: CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys Feb 14 15:57:37 sofie wpa_supplicant[403]: Trying to associate with 00:0b:86:5d:02:c0 (SSID='osuwireless' freq=2437 MHz) Feb 14 15:57:37 sofie kernel: ath0: link state changed to UP Feb 14 15:57:37 sofie wpa_supplicant[403]: Associated with 00:0b:86:5d:02:c0 Feb 14 15:57:37 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-STARTED EAP authentication started Feb 14 15:57:37 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected Feb 14 15:57:37 sofie wpa_supplicant[403]: OpenSSL: tls_connection_handshake - Failed to read possible Application Data error:00000000:lib(0):func(0):reason(0) Feb 14 15:57:37 sofie wpa_supplicant[403]: EAP-MSCHAPV2: Authentication succeeded Feb 14 15:57:37 sofie wpa_supplicant[403]: EAP-TLV: TLV Result - Success - EAP-TLV/Phase2 Completed Feb 14 15:57:37 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully Feb 14 15:57:41 sofie kernel: update_stats: bogus ndx0 -1, max 10, mode 3 Feb 14 15:57:41 sofie kernel: ath0: link state changed to DOWN Feb 14 15:57:41 sofie wpa_supplicant[403]: CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys Feb 14 15:57:49 sofie wpa_supplicant[403]: Trying to associate with 00:0b:86:58:03:e0 (SSID='osuwireless' freq=2412 MHz) Feb 14 15:57:49 sofie wpa_supplicant[403]: Association request to the driver failed Feb 14 15:57:54 sofie wpa_supplicant[403]: Authentication with 00:0b:86:58:03:e0 timed out. Feb 14 15:57:58 sofie dhclient: New IP Address (ath0): 128.146.115.38 Feb 14 15:57:58 sofie dhclient: New Subnet Mask (ath0): 255.255.255.0 Feb 14 15:57:58 sofie dhclient: New Broadcast Address (ath0): 128.146.115.255 Feb 14 15:57:58 sofie dhclient: New Routers (ath0): 128.146.115.1 Feb 14 15:57:59 sofie dhclient: New Routers (ath0): 128.146.115.1 Feb 14 15:58:01 sofie wpa_supplicant[403]: Trying to associate with 00:0b:86:58:03:80 (SSID='osuwireless' freq=2412 MHz) Feb 14 15:58:01 sofie kernel: ath0: link state changed to UP Feb 14 15:58:01 sofie wpa_supplicant[403]: Associated with 00:0b:86:58:03:80 Feb 14 15:58:01 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-STARTED EAP authentication started Feb 14 15:58:06 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected Feb 14 15:58:06 sofie wpa_supplicant[403]: OpenSSL: tls_connection_handshake - Failed to read possible Application Data error:00000000:lib(0):func(0):reason(0) Feb 14 15:58:06 sofie wpa_supplicant[403]: EAP-MSCHAPV2: Authentication succeeded Feb 14 15:58:06 sofie wpa_supplicant[403]: EAP-TLV: TLV Result - Success - EAP-TLV/Phase2 Completed Feb 14 15:58:06 sofie wpa_supplicant[403]: CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully Feb 14 15:58:06 sofie wpa_supplicant[403]: WPA: Key negotiation completed with 00:0b:86:58:03:80 [PTK=TKIP GTK=TKIP] Feb 14 15:58:06 sofie wpa_supplicant[403]: CTRL-EVENT-CONNECTED - Connection to 00:0b:86:58:03:80 completed (reauth) [id=1 id_str=] Feb 14 15:58:25 sofie dhclient: New IP Address (ath0): 128.146.115.38 Feb 14 15:58:25 sofie dhclient: New Subnet Mask (ath0): 255.255.255.0 Feb 14 15:58:25 sofie dhclient: New Broadcast Address (ath0): 128.146.115.255 Feb 14 15:58:25 sofie dhclient: New Routers (ath0): 128.146.115.1 Feb 14 16:03:34 sofie kernel: update_stats: bogus ndx0 -1, max 10, mode 3 Feb 14 16:06:56 sofie kernel: update_stats: bogus ndx0 -1, max 10, mode 3 Feb 14 16:06:57 sofie kernel: update_stats: bogus ndx0 -1, max 10, mode 3 </snip> Please let me know if additional information would be helpful. Cheers, ~Jason -- ~ Jason Morgan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090214222342.GA45141>