From owner-freebsd-wireless@FreeBSD.ORG Fri Jul 20 20:08:50 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 96DFD1065670 for ; Fri, 20 Jul 2012 20:08:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6D3668FC21 for ; Fri, 20 Jul 2012 20:08:50 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so7234850pbb.13 for ; Fri, 20 Jul 2012 13:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=9RMXeWn3h6Lx9G02DZ7mWUexPM3HDnP0tlmW41ONZK4=; b=JFqEO+3Of460kbtGyBkX5/58kc0+Am4GSxZTru+a2F7DkTAfLYDY9jlGV0Qwk3OZL5 YsTiW/+bPX2ECj6BS50b0HeSJMPNi7NgUgK0b7TOMJpUaqCF9pSgRNd0obPjBxtHaqUp knfXxtmHobdW77JncqOXR04yZvgS/KXRUT4Sl2MpSgAZysG1KGF1QJz+wEopL2BzX9yj 1HEkegsHLdDUaNc37p4qqGEMOHuhQAy7qKSF3Nz5ndvrsB457uRUMMGa2sgl01hpFTGN 2iT9LSw4/ntJHWXyxF7bfW8oQB/pIBFHsd846kcnsztF892DkqpwWmLuMhhHm+mokm7s UEFw== MIME-Version: 1.0 Received: by 10.68.201.9 with SMTP id jw9mr16430925pbc.28.1342814930142; Fri, 20 Jul 2012 13:08:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.191.138 with HTTP; Fri, 20 Jul 2012 13:08:50 -0700 (PDT) Date: Fri, 20 Jul 2012 13:08:50 -0700 X-Google-Sender-Auth: Ps59tYEnLnXRkBsXjPR23jLhYNA Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: New tool under development: athratestats X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 20 Jul 2012 20:08:50 -0000 Hi all, I got fed up with looking at rate control information via dmesg and so I have started fleshing out an ioctl API to fetch said information from the driver and punt it to userland. The current API is under development and will likely involve a few more development cycles to make it truely useful. The tool is in tools/ath/ath/athratestats/. It currently lets you dump the sample rate control statistics for a given MAC address (whatever is listed in 'ifconfig wlanX list sta'. It operates on the driver rate control setup, so you actually run it on the athX interface, not the wlanX interface. That may be a bit sub-optimal and unclear for now. Unfortunately, implementing "get all statistics for all nodes" is rather difficult due to locking constraints. I'll look at resolving that particular issue in the future. I'd appreciate whatever feedback you all may have. Adrian