From owner-freebsd-wireless@FreeBSD.ORG Thu Oct 24 20:04:26 2013 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 ESMTP id 77BDA1A1 for ; Thu, 24 Oct 2013 20:04:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x232.google.com (mail-qc0-x232.google.com [IPv6:2607:f8b0:400d:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3BCBE278E for ; Thu, 24 Oct 2013 20:04:26 +0000 (UTC) Received: by mail-qc0-f178.google.com with SMTP id x19so1685760qcw.37 for ; Thu, 24 Oct 2013 13:04:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3gZzKUDLB9iX7nDj8BinRFArKJdT91GwGX51WD16aq8=; b=b1woB4QA8f2FT8M/jA4xw3qRbm8TVT5AR4FQ7LNpYdqFz0o1oJMPX5xtI78jdxjdIp 5JbcPxo3rpJeiuzWfGQxsm3KHa9sGxHxqWE9hvPl41Y+bdjKQksL8F6PMK3Y1jWVVLVh Ajfpvvdz0H8bhZd/J1w3fB1PBkzsPdS7+mVPsng/V0agkbC+l8PLgyM0Zcy+zjYDMi9s pPn9YfrF3UQ8sXBspC0yRxEMdYeRwNtMndMFttznypsVRSozSGerTlzui8vHZqBhCkAI my6iGBjFu4Zucmq6bc2Ndlro7c9zsxpx32NFkCU229+n0viN4QjYexixIa7OtSCMxg+t YlaA== MIME-Version: 1.0 X-Received: by 10.49.62.3 with SMTP id u3mr5976030qer.6.1382645065430; Thu, 24 Oct 2013 13:04:25 -0700 (PDT) Received: by 10.224.207.66 with HTTP; Thu, 24 Oct 2013 13:04:25 -0700 (PDT) Date: Thu, 24 Oct 2013 13:04:25 -0700 Message-ID: Subject: [iwn] request to test: linkq, plcp, txrate fixes From: Adrian Chadd To: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Thu, 24 Oct 2013 20:04:26 -0000 Hi! I have a patch against iwn(4): http://people.freebsd.org/~adrian/ath/20131024-iwn-1-fix-xmit-rate-plcp-linkq.diff This does a few things: * The multi-rate retry ("link quality" stuff) on iwn is a table, and I think I broke it slightly when I implemented 11n rate control. This disables it for now, at least until I / someone implements a replacement table setup and linkq decision. * get rid of the rate index stuff - it was used to decide a few things and it was doing legacy-only rate index lookups. I've just removed it; it's not needed. * Teach the raw transmit path to use the new plcp lookup routine that sets things up. * Correctly implement 11g protection. Right now it was a bit of a hack and it was not correct for 11a or 11n operation. I still get transmit hangs on my 4965 but the "invalid rate" failures have disappeared. But for some odd reason, the transmits completed but weren't being marked as failed. I don't yet know why. I'm also not sure why transmit is hanging; sometimes it looks like DMA stalls somehow. So - maybe this'll help with various 11n issues on iwn(4), maybe it won't. I'm not sure yet. I'm trying to avoid taking ownership of iwn(4) but I rather dislike the occasional 5100/4965 hangs.. Thanks, -adrian