From owner-freebsd-wireless@FreeBSD.ORG Sat Feb 22 03:16:25 2014 Return-Path: Delivered-To: freebsd-wireless@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 DEBE895C for ; Sat, 22 Feb 2014 03:16:25 +0000 (UTC) Received: from mail-qc0-x234.google.com (mail-qc0-x234.google.com [IPv6:2607:f8b0:400d:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 94638101E for ; Sat, 22 Feb 2014 03:16:25 +0000 (UTC) Received: by mail-qc0-f180.google.com with SMTP id i17so7103442qcy.39 for ; Fri, 21 Feb 2014 19:16:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=CCmldE8ZtFuGN4UrsOjAchH/4nF52zPGeREsBJ99djk=; b=aQM+r8+GleqtRwEL94WEEt53R7S1oitCX8XKN2gtXjcfUY7o2dSugQPZneXQLqpzAw Dvnsc6l4koGn3TursAD8YVqMjLd9LB94Jafv2D1yWsNZdeivr4rqgf2VWUnWJ104aUZu 66jWjel6JIJRTKwz8XOgNAfReEgh21cHn1T2rWKvDoHPpn9rmJ82I7doBt99itA9TGmw xePniBaSRuwtcKuh/ATMpRDIfwVg6rmwNeHtY3rcBEDvrO/g1TChMPkQo9yHK+Q4yCZ/ mjrItRsOaXzdwGYgNmuSsI3xVuFyRfZ4X/hdNI73baaEGCGuI0RYun7sFZuWGZ7zptda hzAw== MIME-Version: 1.0 X-Received: by 10.140.96.180 with SMTP id k49mr13946396qge.4.1393038984706; Fri, 21 Feb 2014 19:16:24 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.16.10 with HTTP; Fri, 21 Feb 2014 19:16:24 -0800 (PST) In-Reply-To: <5306E8F4.6050904@shurik.kiev.ua> References: <52CAB6F2.3010707@shurik.kiev.ua> <52CABD82.2070106@shurik.kiev.ua> <52CBFFD3.1080504@dat.pl> <52CE4E00.3060102@shurik.kiev.ua> <52CE4FBD.3060208@shurik.kiev.ua> <5304B48E.8070404@shurik.kiev.ua> <530633A4.3000104@shurik.kiev.ua> <5306E8F4.6050904@shurik.kiev.ua> Date: Fri, 21 Feb 2014 19:16:24 -0800 X-Google-Sender-Auth: ra5wCrUK3xrO8PyN82jEe7WfSDA Message-ID: Subject: Re: Problem connecting to AP From: Adrian Chadd To: Alexandr Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Sat, 22 Feb 2014 03:16:26 -0000 Hi, Right. Look at the status code (0x83) - that's a LONG_LIMIT fail. So it failed to transmit. it fails to transmit even on OFDM/CCK non-11n frames, and that's kinda odd. CAn you repeat the same with 11n disabled? -a On 20 February 2014 21:49, Alexandr wrote: > Attached, thanks! > > 20.02.2014 21:59, Adrian Chadd =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> sysctl dev.iwn.0.debug=3D0x1 - turns on TX debugging >> >> Then, try associating >> >> >> -a >> >> >> On 20 February 2014 08:56, Alexandr wrote: >>> Adrian, I recompile kernel with IWN_DEBUG. What I need else to setup? >>> >>> 19.02.2014 22:46, Adrian Chadd =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>>> Hm, that's really odd. Can you compile your kernel / iwn module with >>>> IWN_DEBUG in your config file? That way we can do some transmit side >>>> debugging. >>>> >>>> Thanks! >>>> >>>> >>>> -a >>>> >>>> >>>> On 19 February 2014 05:41, Alexandr wrote: >>>>> 09.01.2014 09:29, Alexandr =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>>>>> By the way, it connects to my work Cisco and Linksys AP's (but only = 11g) >>>>>> without any problems... >>>>>> >>>>>> 09.01.2014 09:21, Alexandr =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>>>>>> No, wpa_passphrase didn't help me. >>>>>>> >>>>>>> 07.01.2014 15:23, Maciej Milewski =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>>>>>>> On 06.01.2014 15:28, Alexandr wrote: >>>>>>>>> I simply changed key in this listing to "secret". Yes, I tried a = very >>>>>>>>> simple configuration, no luck: >>>>>>>>> >>>>>>>>> network=3D{ >>>>>>>>> ssid=3D"door" >>>>>>>>> psk=3D"secret" >>>>>>>>> } >>>>>>>> Try using wpa_passphrase: >>>>>>>> man wpa_passphrase. >>>>>>>> It should create correct psk. >>>>>>>> >>>>>>>>> 06.01.2014 16:24, Adrian Chadd =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>>>>>>>>> The passphrase 'secret' is too short for WPA. >>>>>>>>>> >>>>>>>>>> I gather it's not _that_, but is it long enough to meet WPA reui= rements? >>>>>>>>>> >>>>>>>>>> Have you tried removing the proto=3D 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-0xf2d01ff= f 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=3D54:e6:fc:e4:48:c4 reason=3D0 >>>>>>>>>>> wpa_supplicant[519]: wlan0: WPA: 4-Way Handshake failed - pre-s= hared key >>>>>>>>>>> may be incorrect >>>>>>>>>>> wpa_supplicant[519]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=3D= 0 >>>>>>>>>>> ssid=3D"door" auth_failures=3D10 duration=3D30 >>>>>>>>>>> >>>>>>>>>>> I tried different security settings (WPA-WPA2 + AES-TKIP), wire= less >>>>>>>>>>> modes, radio channels on my access point, the same error. >>>>>>>>>>> >>>>>>>>>>> # ifconfig wlan0 >>>>>>>>>>> wlan0: flags=3D8843 met= ric 0 mtu 1500 >>>>>>>>>>> ether 68:5d:43:92:3a:88 >>>>>>>>>>> nd6 options=3D29 >>>>>>>>>>> media: IEEE 802.11 Wireless Ethernet autoselect (autose= lect) >>>>>>>>>>> status: no carrier >>>>>>>>>>> ssid door channel 1 (2412 MHz 11g ht/40+) >>>>>>>>>>> country US authmode WPA2/802.11i privacy ON deftxkey UN= DEF >>>>>>>>>>> txpower 13 >>>>>>>>>>> bmiss 10 scanvalid 60 bgscan bgscanintvl 300 bgscanidle= 250 >>>>>>>>>>> roam:rssi 7 roam:rate 64 protmode CTS ampdulimit 8k -am= sdutx amsdurx >>>>>>>>>>> shortgi wme roaming MANUAL >>>>>>>>>>> >>>>>>>>>>> /etc/wpa_supplicant.conf: >>>>>>>>>>> >>>>>>>>>>> ctrl_interface=3D/var/run/wpa_supplicant >>>>>>>>>>> ctrl_interface_group=3Dwheel >>>>>>>>>>> eapol_version=3D2 >>>>>>>>>>> >>>>>>>>>>> network=3D{ >>>>>>>>>>> ssid=3D"door" >>>>>>>>>>> bssid=3D54:e6:fc:e4:48:c4 >>>>>>>>>>> key_mgmt=3DWPA-PSK >>>>>>>>>>> proto=3DWPA RSN >>>>>>>>>>> psk=3D"secret" >>>>>>>>>>> } >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Other home devices connets to AP without problems. Can you poin= t me how >>>>>>>>>>> I can debug it? >>>>>>>>>>> >>>>> Hello! >>>>> Now I have changed my home access point to new Zyxel Keenetic Giga II >>>>> and see the same picture - it still cannot connect to AP in 11n mode: >>>>> >>>>> Feb 19 15:33:05 thinkpad wpa_supplicant[518]: wlan0: >>>>> CTRL-EVENT-SSID-REENABLED id=3D1 ssid=3D"Keenetic-4703" >>>>> Feb 19 15:33:05 thinkpad kernel: wlan0: [10:7b:ef:54:c5:c4] station >>>>> assoc via MLME >>>>> Feb 19 15:33:05 thinkpad kernel: wlan0: [10:7b:ef:54:c5:c4] switch >>>>> station to HT40 channel 2462/0x40480 >>>>> Feb 19 15:33:05 thinkpad wpa_supplicant[518]: wlan0: Trying to associ= ate >>>>> with 10:7b:ef:54:c5:c4 (SSID=3D'Keenetic-4703' freq=3D2462 MHz) >>>>> Feb 19 15:33:05 thinkpad kernel: wlan0: [10:7b:ef:54:c5:c4] recv auth >>>>> frame with algorithm 0 seq 2 >>>>> Feb 19 15:33:05 thinkpad kernel: wlan0: [10:7b:ef:54:c5:c4] assoc >>>>> success at aid 1: long preamble, short slot time, QoS, HT40 (+AMPDU) >>>>> Feb 19 15:33:05 thinkpad kernel: wlan0: link state changed to UP >>>>> Feb 19 15:33:05 thinkpad wpa_supplicant[518]: wlan0: Associated with >>>>> 10:7b:ef:54:c5:c4 >>>>> Feb 19 15:33:05 thinkpad dhclient[2628]: send_packet: No buffer space >>>>> available >>>>> Feb 19 15:33:11 thinkpad last message repeated 2 times >>>>> Feb 19 15:33:11 thinkpad kernel: wlan0: [10:7b:ef:54:c5:c4] recv >>>>> deauthenticate (reason 15) >>>>> Feb 19 15:33:11 thinkpad kernel: wlan0: link state changed to DOWN >>>>> Feb 19 15:33:11 thinkpad wpa_supplicant[518]: wlan0: >>>>> CTRL-EVENT-DISCONNECTED bssid=3D10:7b:ef:54:c5:c4 reason=3D0 >>>>> Feb 19 15:33:11 thinkpad wpa_supplicant[518]: wlan0: WPA: 4-Way >>>>> Handshake failed - pre-shared key may be incorrect >>>>> Feb 19 15:33:11 thinkpad wpa_supplicant[518]: wlan0: >>>>> CTRL-EVENT-SSID-TEMP-DISABLED id=3D1 ssid=3D"Keenetic-4703" auth_fail= ures=3D13 >>>>> duration=3D60 >>>>> >>>>> Is any way to restrict wlan0 to operate only in ht20? ifconfig wlan0 >>>>> channel 11:ht/20 didn't help >>>>> >>>>> P.S. If I simply switch AP to 11g-mode my laptop connects to it. >>>>> >>>>> _______________________________________________ >>>>> freebsd-wireless@freebsd.org mailing list >>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebs= d.org" >