From owner-freebsd-wireless@FreeBSD.ORG Wed Jul 18 23:43:13 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 77207106566C for ; Wed, 18 Jul 2012 23:43:13 +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 49CC18FC12 for ; Wed, 18 Jul 2012 23:43:13 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so3667241pbb.13 for ; Wed, 18 Jul 2012 16:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=CcxCRuCGw1AV1W/L1g307oUgcJCgR22YdqqmLfJpaFM=; b=jR7AumhD8u1YGSuyzPw9UQntFUVLujnyLThcUzi6JxwYBO8ATZc/SsucItBYs6nWbW ODr69Bmozluuo1bFohYgtGy9BXebrHetiCV01h2CIEM0EdEzDSGLH/FUk47a/lJrmv/c FOvl+bQTJxraqFANhQWCpIXfW4ujWKns4+AKAiYA+SI2aWrGnB65hEDP+BdPhUPblnO7 SaEeYj+2ro39gIyNZU7c7CXWIUEh1zwQDjb9K1WTrp0+byJXODC0QoAltd6JKYCdYdMH 8pjyjHdvbiPlr4h+YPlcEFLUUH27VuAS5W3ozbgOxBIoyEojmjwGsC2LS79TV6NWkal8 KuCQ== MIME-Version: 1.0 Received: by 10.68.222.163 with SMTP id qn3mr74160pbc.135.1342654993008; Wed, 18 Jul 2012 16:43:13 -0700 (PDT) Received: by 10.68.195.102 with HTTP; Wed, 18 Jul 2012 16:43:12 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Jul 2012 16:43:12 -0700 Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR9227 hostap on FreeBSD 10-current 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: Wed, 18 Jul 2012 23:43:13 -0000 On 18 July 2012 16:32, Kim Culhan wrote: > On Wed, Jul 18, 2012 at 6:54 PM, Adrian Chadd wrote: >> It says HT40, so it's 11n. >> >> Do 'ifconfig wlan0 list sta', see what speeds the stations are at. >> >> Do 'sysctl dev.ath.0.sample_stats=1' and check dmesg, see whether it's >> TXing using MCS or legacy rates. > > ifconfig list sta returns: > > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 90:f6:52:76:ec:98 3 11 135M 20.0 0 872 22944 EPS AQEHTRS > WME HTCAP ATH RSN > f8:d1:11:39:4f:b4 1 11 243M 22.0 0 273 64208 EPS AQEHTRS > RSN WME HTCAP Yup! 11n rates. > The first sta is a TP-Link TL-WA701ND in client mode > > The second sta is the other AR9227 device which is a TP-Link TL-WN851ND V1 > > sysctl dev.ath.0.sample_stats=1 > > returns > > dev.ath.0.sample_stats: 0 -> 0 Then check 'dmesg'. I'd really like to export the ath and net80211 rate control information to userland in a sensible way, rather than constantly checking dmesg for this. Maybe I'll work on that tonight. Adrian