From owner-freebsd-stable@FreeBSD.ORG Tue Jan 7 21:07:55 2014 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8503495F for ; Tue, 7 Jan 2014 21:07:55 +0000 (UTC) Received: from system.jails.se (system.jails.se [IPv6:2001:16d8:cc1e:1::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C3B301E63 for ; Tue, 7 Jan 2014 21:07:54 +0000 (UTC) Received: from localhost (system.jails.se [91.205.63.85]) by system.jails.se (Postfix) with SMTP id E237C32F0E7 for ; Tue, 7 Jan 2014 22:07:41 +0100 (CET) Received: from klein.pean.org (klein.pean.org [IPv6:2001:16d8:ff9f::60]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by system.jails.se (Postfix) with ESMTPSA id 6822C32F0E2 for ; Tue, 7 Jan 2014 22:07:39 +0100 (CET) From: =?windows-1252?Q?Peter_Ankerst=E5l?= Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: wpa_supplicant problem. Message-Id: <79AEC286-90EB-41D0-8CA8-18A78D53C3C6@pean.org> Date: Tue, 7 Jan 2014 22:07:38 +0100 To: stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) X-Mailer: Apple Mail (2.1827) X-DSPAM-Result: Innocent X-DSPAM-Processed: Tue Jan 7 22:07:41 2014 X-DSPAM-Confidence: 1.0000 X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 52cc6c9d28301663419526 X-DSPAM-Factors: 27, Inc+', 0.40000, Sun, 0.40000, No+keys, 0.40000, No+keys, 0.40000, 1+sec, 0.40000, 1+sec, 0.40000, 87+freq=5280, 0.40000, /etc/wpa_supplicant, 0.40000, /etc/wpa_supplicant, 0.40000, Message-Id*<79AEC286+90EB, 0.40000, sec+100000, 0.40000, sec+100000, 0.40000, 16+pairwise, 0.40000, D, 0.40000, TKIP, 0.40000, TKIP, 0.40000, group+100, 0.40000, group+100, 0.40000, Received*cipher+AES128, 0.40000, from+a, 0.40000, wpa_driver_bsd_capa+drivercaps=0x2581e201, 0.40000, e8+type=0, 0.40000, key_mgmt=WPA, 0.40000, Received+2508, 0.40000, wlan0+CTRL, 0.40000, non, 0.40000, Lenovo+X220, 0.40000 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2014 21:07:55 -0000 Hi! Im trying to connect from a Lenovo X220 to my FreeBSD router running = hostapd. The router is supporting a lot of other clients (OS X and iOS) without any problems. And my = laptop can connect to my phone when I set it up as a hotspot. Lenovo X220: FreeBSD lenny 10.0-RC2 FreeBSD 10.0-RC2 #0 r259404: Sun Dec 15 08:18:20 = UTC 2013 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 iwn0@pci0:3:0:0: class=3D0x028000 card=3D0x13118086 = chip=3D0x00858086 rev=3D0x34 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D 'Centrino Advanced-N 6205 [Taylor Peak]' class =3D network # cat /etc/wpa_supplicant.conf=20 ctrl_interface=3D/var/run/wpa_supplicant eapol_version=3D2 ap_scan=3D1 fast_reauth=3D1 network=3D{ priority=3D100 proto=3DRSN WPA ssid=3D"web" key_mgmt=3DWPA-PSK pairwise=3DCCMP TKIP group=3DCCMP TKIP psk=3D=93secret=94 } Router: FreeBSD gw 10.0-RC1 FreeBSD 10.0-RC1 #3 r259258: Thu Dec 12 16:21:37 CET = 2013 root@gw:/usr/obj/usr/src/sys/SOEKRIS i386 ath0@pci0:7:0:0: class=3D0x028000 card=3D0x3114168c = chip=3D0x0030168c rev=3D0x01 hdr=3D0x00 vendor =3D 'Atheros Communications Inc.' device =3D 'AR9300 Wireless LAN adaptor' class =3D network # cat /etc/hostapd.conf interface=3Dwlan0 driver=3Dbsd debug=3D0 ctrl_interface=3D/var/run/hostapd ctrl_interface_group=3Dwheel ssid=3Dweb wpa=3D2 wpa_passphrase=3Dsecret wpa_key_mgmt=3DWPA-PSK wpa_pairwise=3DCCMP TKIP rsn_pairwise=3DCCMP debug output from wpa_supplicant. # wpa_supplicant -D bsd -i wlan0 -d -c /etc/wpa_supplicant.conf wpa_supplicant v2.0 Successfully initialized wpa_supplicant Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver = 'bsd' ctrl_interface 'N/A' bridge 'N/A' Configuration file '/etc/wpa_supplicant.conf' -> = '/etc/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant.conf' ctrl_interface=3D'/var/run/wpa_supplicant' eapol_version=3D2 ap_scan=3D1 fast_reauth=3D1 Priority group 100 id=3D0 ssid=3D'web' wpa_driver_bsd_capa: drivercaps=3D0x2581e201,cryptocaps=3D0x00000000 wlan0: Own MAC address: f0:de:f1:c9:14:4d bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D0 set_tx=3D0 seq_len=3D0 = key_len=3D0 bsd_del_key: key_idx=3D0 bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D1 set_tx=3D0 seq_len=3D0 = key_len=3D0 bsd_del_key: key_idx=3D1 bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D2 set_tx=3D0 seq_len=3D0 = key_len=3D0 bsd_del_key: key_idx=3D2 bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D3 set_tx=3D0 seq_len=3D0 = key_len=3D0 bsd_del_key: key_idx=3D3 wpa_driver_bsd_set_countermeasures: enabled=3D0 wlan0: RSN: flushing PMKID list in the driver wlan0: Setting scan request: 0 sec 100000 usec WPS: Set UUID for interface wlan0 WPS: UUID based on MAC address - hexdump(len=3D16): f4 2a e7 3f ed 75 52 = b7 99 15 e0 56 b1 07 04 4f EAPOL: SUPP_PAE entering state DISCONNECTED EAPOL: Supplicant port status: Unauthorized EAPOL: KEY_RX entering state NO_KEY_RECEIVE EAPOL: SUPP_BE entering state INITIALIZE EAP: EAP entering state DISABLED EAPOL: Supplicant port status: Unauthorized EAPOL: Supplicant port status: Unauthorized wlan0: Added interface wlan0 wlan0: State: DISCONNECTED -> DISCONNECTED wlan0: State: DISCONNECTED -> SCANNING wlan0: Starting AP scan for wildcard SSID wpa_driver_bsd_set_wpa: enabled=3D1 wpa_driver_bsd_set_wpa_internal: wpa=3D3 privacy=3D1 EAPOL: disable timer tick EAPOL: Supplicant port status: Unauthorized wlan0: Event SCAN_RESULTS (3) received Received 2508 bytes of scan results (9 BSSes) wlan0: BSS: Start scan result update 1 wlan0: BSS: Add new id 0 BSSID 04:f0:21:01:3d:87 SSID 'web' wlan0: BSS: Add new id 1 BSSID 8a:08:93:36:a1:10 SSID 'Mavar' wlan0: BSS: Add new id 2 BSSID 88:1f:a1:36:93:08 SSID 'Gotland' wlan0: BSS: Add new id 3 BSSID 8a:09:93:36:a1:10 SSID 'Mavar' wlan0: BSS: Add new id 4 BSSID 88:1f:a1:36:93:09 SSID 'Gotland++' wlan0: BSS: Add new id 5 BSSID 58:98:35:ba:2c:17 SSID 'Katyusha' wlan0: BSS: Add new id 6 BSSID 58:98:35:be:ef:9f SSID = 'TeliaGateway58-98-35-BE-EF-9F' wlan0: BSS: Add new id 7 BSSID cc:b2:55:94:23:e8 SSID 'P-sons' wlan0: BSS: Add new id 8 BSSID a0:21:b7:b4:55:d8 SSID 'Bonnier' BSS: last_scan_res_used=3D9/32 last_scan_full=3D0 wlan0: New scan results available WPS: AP cc:b2:55:94:23:e8 type 0 added WPS: AP a0:21:b7:b4:55:d8 type 0 added WPS: AP[0] cc:b2:55:94:23:e8 type=3D0 tries=3D0 last_attempt=3D-1 sec = ago blacklist=3D0 WPS: AP[1] a0:21:b7:b4:55:d8 type=3D0 tries=3D0 last_attempt=3D-1 sec = ago blacklist=3D0 wlan0: Selecting BSS from priority group 100 wlan0: 0: 04:f0:21:01:3d:87 ssid=3D'web' wpa_ie_len=3D0 rsn_ie_len=3D20 = caps=3D0x11 level=3D-67 wlan0: selected based on RSN IE wlan0: selected BSS 04:f0:21:01:3d:87 ssid=3D'web' wlan0: Request association: reassociate: 0 selected: 04:f0:21:01:3d:87 = bssid: 00:00:00:00:00:00 pending: 00:00:00:00:00:00 wpa_ state: SCANNING wlan0: Trying to associate with 04:f0:21:01:3d:87 (SSID=3D'web' = freq=3D5280 MHz) FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=3D0):= wlan0: Cancelling scan request wlan0: WPA: clearing own WPA/RSN IE wlan0: Automatic auth_alg selection: 0x1 RSN: PMKSA cache search - network_ctx=3D0x0 try_opportunistic=3D0 RSN: Search for BSSID 04:f0:21:01:3d:87 RSN: No PMKSA cache entry found wlan0: RSN: using IEEE 802.11i/D9.0 wlan0: WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 = proto 2 wlan0: WPA: clearing AP WPA IE WPA: set AP RSN IE - hexdump(len=3D22): 30 14 01 00 00 0f ac 04 01 00 00 = 0f ac 04 01 00 00 0f ac 02 0c 00 wlan0: WPA: using GTK CCMP wlan0: WPA: using PTK CCMP wlan0: WPA: using KEY_MGMT WPA-PSK WPA: Set own WPA IE default - hexdump(len=3D22): 30 14 01 00 00 0f ac 04 = 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 wlan0: No keys have been configured - skip key clearing wlan0: State: SCANNING -> ASSOCIATING Limit connection to BSSID 04:f0:21:01:3d:87 freq=3D5280 MHz based on = scan results (bssid_set=3D0) wpa_driver_bsd_associate: ssid 'web' wpa ie len 22 pairwise 3 group 3 = key mgmt 1 wpa_driver_bsd_set_drop_unencrypted: enabled=3D1 bsd_set_opt_ie: set WPA+RSN ie (len 22) wpa_driver_bsd_associate: set PRIVACY 1 wlan0: Setting authentication timeout: 10 sec 0 usec EAPOL: External notification - EAP success=3D0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - EAP fail=3D0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - portControl=3DAuto EAPOL: Supplicant port status: Unauthorized RSN: Ignored PMKID candidate without preauth flag wlan0: Event ASSOC (0) received wlan0: State: ASSOCIATING -> ASSOCIATED wlan0: Associated to a new BSS: BSSID=3D04:f0:21:01:3d:87 wlan0: No keys have been configured - skip key clearing wlan0: Associated with 04:f0:21:01:3d:87 wlan0: WPA: Association event - clear replay counter wlan0: WPA: Clear old PTK EAPOL: External notification - portEnabled=3D0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - portValid=3D0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - EAP success=3D0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - portEnabled=3D1 EAPOL: SUPP_PAE entering state CONNECTING EAPOL: enable timer tick EAPOL: SUPP_BE entering state IDLE wlan0: Setting authentication timeout: 10 sec 0 usec wlan0: Cancelling scan request EAPOL: startWhen --> 0 EAPOL: disable timer tick EAPOL: SUPP_PAE entering state CONNECTING EAPOL: enable timer tick EAPOL: txStart WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=3D1 len=3D0) wlan0: Event DISASSOC (1) received wlan0: Disassociation notification wlan0: CTRL-EVENT-DISCONNECTED bssid=3D04:f0:21:01:3d:87 reason=3D0 wlan0: Auto connect enabled: try to reconnect (wps=3D0 wpa_state=3D6) wlan0: Setting scan request: 0 sec 100000 usec Added BSSID 04:f0:21:01:3d:87 into blacklist wlan0: Blacklist count 1 --> request scan in 100 ms wlan0: Setting scan request: 0 sec 100000 usec wlan0: Disconnect event - remove keys bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D0 set_tx=3D0 seq_len=3D0 = key_len=3D0 bsd_del_key: key_idx=3D0 bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D1 set_tx=3D0 seq_len=3D0 = key_len=3D0 bsd_del_key: key_idx=3D1 bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D2 set_tx=3D0 seq_len=3D0 = key_len=3D0 bsd_del_key: key_idx=3D2 bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D3 set_tx=3D0 seq_len=3D0 = key_len=3D0 bsd_del_key: key_idx=3D3 bsd_set_key: alg=3D0 addr=3D0x801c2f4c8 key_idx=3D0 set_tx=3D0 seq_len=3D0= key_len=3D0 bsd_del_key: addr=3D04:f0:21:01:3d:87 wlan0: State: ASSOCIATED -> DISCONNECTED EAPOL: External notification - portEnabled=3D0 EAPOL: SUPP_PAE entering state DISCONNECTED EAPOL: Supplicant port status: Unauthorized EAPOL: SUPP_BE entering state INITIALIZE EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - portValid=3D0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - EAP success=3D0 EAPOL: Supplicant port status: Unauthorized wlan0: State: DISCONNECTED -> SCANNING