From owner-freebsd-wireless@FreeBSD.ORG Tue Oct 29 04:27:32 2013 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 ESMTP id D6947CBF; Tue, 29 Oct 2013 04:27:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 49C2526C8; Tue, 29 Oct 2013 04:27:31 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id i13so2641598qae.16 for ; Mon, 28 Oct 2013 21:27:30 -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=lTpcHyGPuOHNuQFHIc1qdoXIMEVVjReu5BK7DCcMe1M=; b=d5mDUoJAew2tpjMV5msAxpqYyUBFY752Rl7o7Df4uZaQFBGHXHRIVyCGhQ8ru9LcaG y2EsoZeoWKs+9iAgf09J7wuBg6o/6JRwCnB7dr2uWrC170rK0rpm974KHVfn04PIxzta XqkpB0Kx/ckusDkwdoLtIbR/8hXiNFu5HfUp+u5LH39536kPig2fvN+Gtr8Tdf0gQObO 1lJy9Eqre2zglKePEJ4jh7JNm5btlOKOmKAUgybilFD/RDlayvDXH4YWGh/zDuXf5uMe Cto+xmq9DvRVw6vpujJCQZDLE7adtZyHUVekcr2Ua2bjtNX38OHhhOSBx6aGh3rN6z+t FwWw== MIME-Version: 1.0 X-Received: by 10.224.131.133 with SMTP id x5mr34486421qas.70.1383020850440; Mon, 28 Oct 2013 21:27:30 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Mon, 28 Oct 2013 21:27:30 -0700 (PDT) In-Reply-To: References: <201310251944.r9PJis6q004419@svn.freebsd.org> <20131027101106.GA2843@mole.fafoe.narf.at> <20131028190005.GA1509@mole.fafoe.narf.at> <20131028192731.GA1505@mole.fafoe.narf.at> Date: Mon, 28 Oct 2013 21:27:30 -0700 X-Google-Sender-Auth: 5GuFnQt8ls2U1b44yhwgvWqrONw Message-ID: Subject: Re: svn commit: r257133 - head/sys/dev/iwn From: Adrian Chadd To: Stefan Farfeleder , "freebsd-wireless@freebsd.org" 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: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 29 Oct 2013 04:27:32 -0000 I've filed a PR. Please update to -HEAD and test. Thanks! -adrian On 28 October 2013 15:05, Adrian Chadd wrote: > Hi! > > Yup! So, the difference is in the rate being selected. > > It looks like the remote end is just plainly not ACKing the 11n > management frame being sent; but it totally ACKs the 11b CCK frame > being sent. > > So, thanks for pointing that out. I'll go and err, "fix" this mistake. > The driver should be doing what the stack says. Bernhard figured out a > couple years ago that doing 11n management frames to 11n devices is > not guaranteed to work, so we "fixed" that. I will go and figure out > why this is now broken for iwn. > > Thanks! > > Would you mind filing a PR with what we've gathered? > > > > -adrian > > > > On 28 October 2013 12:27, Stefan Farfeleder wrote: >> On Mon, Oct 28, 2013 at 12:07:17PM -0700, Adrian Chadd wrote: >>> Yeah: >>> >>> Oct 28 19:43:43 mole kernel: iwn5000_tx_done: qid 3 idx 4 retries 7 >>> nkill 0 rate a902 duration 686 status 83 >>> >>> status 0x83 is LONG_LIMIT, which meant it tried to transmit and it >>> failed to get an ACK each time. >>> >>> The rate control says: >>> >>> 0x02: the rate in question >>> bit 8: MCS >>> bit 11: HT40 >>> bits 14+15: transmit antennas A+B >>> >>> .. and it's an association/management frame, which is odd as they're >>> not supposed to be sent as 11n HT40 frames like this. >>> >>> can you do the same experiment but with the patch reverted? I'd like >>> to see what the selected rate is. >> >> Ok, here's the output with r257155 and r257133 reverted: >> >> http://pastebin.com/CJzsTANv >> >> Stefan