From owner-freebsd-wireless@FreeBSD.ORG Wed Apr 17 14:56:26 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9133EF7D for ; Wed, 17 Apr 2013 14:56:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 34495E0F for ; Wed, 17 Apr 2013 14:56:26 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id r3so1332744wey.3 for ; Wed, 17 Apr 2013 07:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=8iWnuQLgaNWbBOQPDRqq5G0/bwt1V2oFxp5lnX1ByxY=; b=T3XA6uxOP7FuIIzCnOlGBryr1wmPN2p3Vldtb/zTu4PAOvmz8ylLHaY9yztEu52D1F 2AXt7uUgWx+hYbkeuy9RlIJClRKrZqGN38iAzMArTwmmpzmDqBaBQLmIIfLDSAYUibZW tzPwMLMmRBOOn1RdzefHNws6k8kIjxO+uJCqH6ZbBKcsEeWH0wXLFxp5VXCFOXC06XPE PisaWVKeNP4bFhwR2VWo2n8eTD1tyZIHfkmXpfd+CWW0LSjs0MEiV9+K2s7Im5Z3SyIB 6G/QKfH7iYBiv+b9Y+TboFs6H9QckhZmxyKGtZl+7HNY8fDliwpybNE/1+3MPO+GCoGO zFig== MIME-Version: 1.0 X-Received: by 10.194.222.100 with SMTP id ql4mr11886938wjc.59.1366210580719; Wed, 17 Apr 2013 07:56:20 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.88.129 with HTTP; Wed, 17 Apr 2013 07:56:20 -0700 (PDT) Date: Wed, 17 Apr 2013 07:56:20 -0700 X-Google-Sender-Auth: xyMAlyB9L12APmQiCdytjzUR8Is Message-ID: Subject: [ath] [cft] TPC and rate setup changes in -HEAD; please test! From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Wed, 17 Apr 2013 14:56:26 -0000 Hi all, After months of tinkering with it on the side, I finally gave in and finished the per-packet TPC (transmit power control) support. This allows the rate control and net80211 stack code to change the target TX power dynamically per node, rather than having a global TX power limit. So now it works on the AR5212 era NICs and the 802.11n era NICs. If you want to test it out, just do 'sysctl dev.ath.X.tpc=1' before you configure and bring up any VAPs. It doesn't work if you do it whilst things are live. I've also tidied up the rate control setup code a little. Now instead of duplicating a bunch of work, it sets up the rate control information array in one place, then uses that when setting up the TX descriptor for transmission. This will help in the eventual migration of the rate control code to net80211 (as now that's the one routine that needs to be called to finish all the rate control setup) and I've done a little testing, but it could do with more. So TL;DR - please update to -HEAD and let me know if things change. Adrian