From owner-svn-src-head@FreeBSD.ORG Sun Oct 27 16:04:11 2013 Return-Path: Delivered-To: svn-src-head@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 ESMTP id 299E54CE; Sun, 27 Oct 2013 16:04:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x236.google.com (mail-qa0-x236.google.com [IPv6:2607:f8b0:400d:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ABF592EA0; Sun, 27 Oct 2013 16:04:10 +0000 (UTC) Received: by mail-qa0-f54.google.com with SMTP id j15so1602873qaq.20 for ; Sun, 27 Oct 2013 09:04:10 -0700 (PDT) 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; bh=fDRFm/woMIfgeFpF1qZFevPUosxgCEd4oYCIAiH+ONg=; b=OVX6qa0uIsmucdQGFaSCZvu8Hv1m2wBrfCtGGo7HOemOg5124NNLKSoFR3u05vL+yU /fjoHMuEhvU0n2C9I0I48ExvDobtfItpSe513SFTIHauwX3zznsat3xUBJNQsvU70lQk Ea01nwBpGwdi3B/VkezEhCOH0CmrSE74usbZWMKEssb0s1H0nH/oGt0KE5oPiScD1Ewq mW/t6JW4mfOkrMYtYrsCUOwKoNz6qhPYhoADV2aZ+Ve5Gkssvo810NA2/9K2m95bP7F1 g46JKSwK4DWgrROriPMoUJuScdsvdWU4nf2s3XCsrE2bV+JPz7lGLx3zemgD+kZk1K6b 6Xhw== MIME-Version: 1.0 X-Received: by 10.49.127.179 with SMTP id nh19mr23421308qeb.1.1382889849951; Sun, 27 Oct 2013 09:04:09 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Sun, 27 Oct 2013 09:04:09 -0700 (PDT) In-Reply-To: <20131027101106.GA2843@mole.fafoe.narf.at> References: <201310251944.r9PJis6q004419@svn.freebsd.org> <20131027101106.GA2843@mole.fafoe.narf.at> Date: Sun, 27 Oct 2013 09:04:09 -0700 X-Google-Sender-Auth: RPSwdG0w2bo64XXXyJnDsFYe7uY Message-ID: Subject: Re: svn commit: r257133 - head/sys/dev/iwn From: Adrian Chadd To: Stefan Farfeleder Content-Type: text/plain; charset=ISO-8859-1 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Oct 2013 16:04:11 -0000 Hm, ok. Can you compile it with IWN_DEBUG and IEEE80211_DEBUG, then do this: sysctl dev.iwn.0.debug=0x1 wlandebug +rate I'd like to see what the selected rate is and what the logged reason for failing to transmit is. I have a 5100 and it works totally fine for me. Thanks! -adrian On 27 October 2013 03:11, Stefan Farfeleder wrote: > On Fri, Oct 25, 2013 at 07:44:54PM +0000, Adrian Chadd wrote: >> Author: adrian >> Date: Fri Oct 25 19:44:53 2013 >> New Revision: 257133 >> URL: http://svnweb.freebsd.org/changeset/base/257133 >> >> Log: >> Temporarily disable multi-rate retry (link quality) and eliminate rate >> index lookups. >> >> * My recent(ish) change to iwn(4) and the net80211 rate control API to >> support 11n rates broke the link quality table use. So, until I or >> someone else decides to fix it, let's just disable it for now. >> >> * Teach iwn_tx_data_raw() to use the iwn_rate_to_plcp() function. >> >> * Eliminate two uses of the net80211 rate index lookup functions - they >> are only for legacy rates and they're not needed here. >> >> This fixes some invalid looking rate control TX issues that showed up >> on my 4965 but it doesn't fix the two TX hangs I've noticed. Those look >> like DMA related issues. >> >> Tested: >> >> * 4965, STA mode >> * 5100, STA mode > > Hi Adrian, > > this change completely broke iwn for me. It's a > > iwn0: mem 0xf1ffe000-0xf1ffffff irq 17 at device 0.0 on pci12 > > built-in device in a Dell Precision m4400. > > With this change, wpa_supplicant cannot associate any longer. In the > logs I see every few seconds > > Oct 27 10:57:37 mole wpa_supplicant[2256]: wlan0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='xx' freq=2427 MHz) > Oct 27 10:57:47 mole wpa_supplicant[2256]: wlan0: Authentication with xx:xx:xx:xx:xx:xx timed out. > Oct 27 10:57:47 mole wpa_supplicant[2256]: wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=3 locally_generated=1 > > If I revert just this revision based on a r257155 checkout, it works > again. > > Stefan