From owner-freebsd-wireless@FreeBSD.ORG Mon Jan 6 15:17:29 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DE55D497; Mon, 6 Jan 2014 15:17:29 +0000 (UTC) Received: from graal.it-profi.org.ua (graal.shurik.kiev.ua [193.239.74.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6390519B7; Mon, 6 Jan 2014 15:17:29 +0000 (UTC) Received: from [93.183.237.30] (helo=thinkpad.it-profi.org.ua) by graal.it-profi.org.ua with esmtpa (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1W0Bvj-000FPA-Mi; Mon, 06 Jan 2014 17:17:27 +0200 Message-ID: <52CAC907.8020507@shurik.kiev.ua> Date: Mon, 06 Jan 2014 17:17:27 +0200 From: Alexandr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: Problem connecting to AP References: <52CAB6F2.3010707@shurik.kiev.ua> <52CABD82.2070106@shurik.kiev.ua> <52CAC368.3000105@shurik.kiev.ua> <52CAC6B6.8090007@shurik.kiev.ua> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 93.183.237.30 X-SA-Exim-Mail-From: shuriku@shurik.kiev.ua X-SA-Exim-Scanned: No (on graal.it-profi.org.ua); SAEximRunCond expanded to false Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jan 2014 15:17:29 -0000 It's TP-Link TL-MR3420 rev.1. How can I capture a dump? AP has no such tools and it logs is clean. Can I do it from my bsd? 06.01.2014 17:08, Adrian Chadd пишет: > Which AP is it? > > I kinda want to see a packet dump of the negotiation exchange. I'm > worried that your AP is deciding to kick you off because you don't > meet some minimum rate selection or something. > > -a > > On 6 January 2014 07:07, Alexandr wrote: >> Yes, just now it works in 11n-only. But I tried switch it to bgn-mixed, >> g-only, n-only - no luck. >> >> /var/log/dmesg.today: >> >> wlan0: [54:e6:fc:e4:48:c4] recv auth frame with algorithm 0 seq 2 >> wlan0: link state changed to UP >> wlan0: [54:e6:fc:e4:48:c4] recv deauthenticate (reason 2) >> wlan0: link state changed to DOWN >> >> /var/log/messages: >> >> Jan 6 17:05:03 thinkpad wpa_supplicant[27113]: wlan0: Trying to >> associate with 54:e6:fc:e4:48:c4 (SSID='door' freq=2412 MHz) >> Jan 6 17:05:03 thinkpad wpa_supplicant[27113]: wlan0: Associated with >> 54:e6:fc:e4:48:c4 >> Jan 6 17:05:06 thinkpad wpa_supplicant[27113]: wlan0: >> CTRL-EVENT-DISCONNECTED bssid=54:e6:fc:e4:48:c4 reason=0 >> Jan 6 17:05:17 thinkpad wpa_supplicant[27113]: wlan0: Trying to >> associate with 54:e6:fc:e4:48:c4 (SSID='door' freq=2412 MHz) >> Jan 6 17:05:17 thinkpad wpa_supplicant[27113]: wlan0: Associated with >> 54:e6:fc:e4:48:c4 >> Jan 6 17:05:20 thinkpad wpa_supplicant[27113]: wlan0: >> CTRL-EVENT-DISCONNECTED bssid=54:e6:fc:e4:48:c4 reason=0 >> >> 06.01.2014 16:56, Adrian Chadd пишет: >>> .. and is the AP locked down to 11n only or something? >>> >>> >>> -a >>> >>> On 6 January 2014 06:55, Adrian Chadd wrote: >>>> Whta's logged in dmesg? >>>> >>>> >>>> -a >>>> >>>> On 6 January 2014 06:53, Alexandr wrote: >>>>> Ок, I changed key to "secretsecretsecret", the same error - WPA: 4-Way >>>>> Handshake failed - pre-shared key may be incorrect. >>>>> >>>>> <3>Trying to associate with 54:e6:fc:e4:48:c4 (SSID='door' freq=2412 MHz) >>>>> <3>Associated with 54:e6:fc:e4:48:c4 >>>>> <3>CTRL-EVENT-DISCONNECTED bssid=54:e6:fc:e4:48:c4 reason=0 >>>>> <3>WPA: 4-Way Handshake failed - pre-shared key may be incorrect >>>>> <3>CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="door" auth_failures=8 >>>>> duration=30 >>>>> >>>>> But it successfully connects to my android phone: >>>>> >>>>> wlan0: flags=8843 metric 0 mtu 1500 >>>>> ether 68:5d:43:92:3a:88 >>>>> inet 192.168.1.227 netmask 0xffffff00 broadcast 192.168.1.255 >>>>> nd6 options=29 >>>>> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng >>>>> status: associated >>>>> ssid htc channel 6 (2437 MHz 11g ht/20) bssid 84:7a:88:c9:25:ce >>>>> country US authmode WPA2/802.11i privacy ON deftxkey UNDEF >>>>> AES-CCM 2:128-bit txpower 15 bmiss 10 scanvalid 60 bgscan >>>>> bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 64 protmode CTS >>>>> ampdulimit 16k -amsdutx amsdurx shortgi wme roaming MANUAL >>>>> >>>>> >>>>> May be it AP-related problem? But why other devices works (laptop with >>>>> opensuse and different android devices) >>>>> >>>>> 06.01.2014 16:43, Adrian Chadd пишет: >>>>>> You still need a longer password, psk isn't WPA long. Try secretsecretsecret. >>>>>> >>>>>> >>>>>> -a >>>>>> >>>>>> On 6 January 2014 06:28, Alexandr wrote: >>>>>>> I simply changed key in this listing to "secret". Yes, I tried a very >>>>>>> simple configuration, no luck: >>>>>>> >>>>>>> network={ >>>>>>> ssid="door" >>>>>>> psk="secret" >>>>>>> } >>>>>>> >>>>>>> >>>>>>> 06.01.2014 16:24, Adrian Chadd пишет: >>>>>>>> The passphrase 'secret' is too short for WPA. >>>>>>>> >>>>>>>> I gather it's not _that_, but is it long enough to meet WPA reuirements? >>>>>>>> >>>>>>>> Have you tried removing the proto= and bssid lines? You don't strictly >>>>>>>> need them. >>>>>>>> >>>>>>>> Thanks! >>>>>>>> >>>>>>>> -a >>>>>>>> >>>>>>>> >>>>>>>> On 6 January 2014 06:00, Alexandr wrote: >>>>>>>>> Hello, >>>>>>>>> >>>>>>>>> I recently upgraded system on my laptop to current with a hope to get my >>>>>>>>> wireless card working. Now it successfully recognized by kernel: >>>>>>>>> >>>>>>>>> iwn0: mem 0xf2d00000-0xf2d01fff irq 17 >>>>>>>>> at device 0.0 on pci3 >>>>>>>>> >>>>>>>>> Unfortunately, I can't connect to my home access point: >>>>>>>>> >>>>>>>>> wpa_supplicant[519]: wlan0: CTRL-EVENT-DISCONNECTED >>>>>>>>> bssid=54:e6:fc:e4:48:c4 reason=0 >>>>>>>>> wpa_supplicant[519]: wlan0: WPA: 4-Way Handshake failed - pre-shared key >>>>>>>>> may be incorrect >>>>>>>>> wpa_supplicant[519]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 >>>>>>>>> ssid="door" auth_failures=10 duration=30 >>>>>>>>> >>>>>>>>> I tried different security settings (WPA-WPA2 + AES-TKIP), wireless >>>>>>>>> modes, radio channels on my access point, the same error. >>>>>>>>> >>>>>>>>> # ifconfig wlan0 >>>>>>>>> wlan0: flags=8843 metric 0 mtu 1500 >>>>>>>>> ether 68:5d:43:92:3a:88 >>>>>>>>> nd6 options=29 >>>>>>>>> media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) >>>>>>>>> status: no carrier >>>>>>>>> ssid door channel 1 (2412 MHz 11g ht/40+) >>>>>>>>> country US authmode WPA2/802.11i privacy ON deftxkey UNDEF >>>>>>>>> txpower 13 >>>>>>>>> bmiss 10 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 >>>>>>>>> roam:rssi 7 roam:rate 64 protmode CTS ampdulimit 8k -amsdutx amsdurx >>>>>>>>> shortgi wme roaming MANUAL >>>>>>>>> >>>>>>>>> /etc/wpa_supplicant.conf: >>>>>>>>> >>>>>>>>> ctrl_interface=/var/run/wpa_supplicant >>>>>>>>> ctrl_interface_group=wheel >>>>>>>>> eapol_version=2 >>>>>>>>> >>>>>>>>> network={ >>>>>>>>> ssid="door" >>>>>>>>> bssid=54:e6:fc:e4:48:c4 >>>>>>>>> key_mgmt=WPA-PSK >>>>>>>>> proto=WPA RSN >>>>>>>>> psk="secret" >>>>>>>>> } >>>>>>>>> >>>>>>>>> >>>>>>>>> Other home devices connets to AP without problems. Can you point me how >>>>>>>>> I can debug it? >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> freebsd-wireless@freebsd.org mailing list >>>>>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>>>>>>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"