From owner-freebsd-wireless@FreeBSD.ORG Sun May 6 17:43:55 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 D2745106566C for ; Sun, 6 May 2012 17:43:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4E2DF8FC16 for ; Sun, 6 May 2012 17:43:55 +0000 (UTC) Received: by lbon10 with SMTP id n10so4096825lbo.13 for ; Sun, 06 May 2012 10:43:54 -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 :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=53aRj6JSToysUjgdw368C+N3MDAtSpa6YQYLXt7S33k=; b=txPzljiTUK1iDz3aOehu66r668aiXGL7qmgWHGC47ssMSFhWQlXZmJFRcxU772cOyb Jii/jlEQfjJDbljn6sezYHQm27O263Pte8G50TF8WkkEW3/+K2jlLUfeFjUj+BZQgH+a MttWjAebW01EWSnVmQ8aXW3DNJ2X5FXcivR0LwNuFl7woyni9RqgYh6jaW+SsE+Zniz7 /4cQJ4I3d78DaJh6O4UFss5APEnOVjNQ+w3PezMP6SWMStuc6kC23Ic1xolf4h5CADYQ AkdLnuMm3BCu5XCzyVIauhdZCxrU6ZEeSGGOrF/Sa1CUPi+B1DQ92YOrYgvUZrSk2Iif 63Aw== MIME-Version: 1.0 Received: by 10.112.85.200 with SMTP id j8mr5978970lbz.80.1336326233927; Sun, 06 May 2012 10:43:53 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.112.150.99 with HTTP; Sun, 6 May 2012 10:43:53 -0700 (PDT) In-Reply-To: References: Date: Sun, 6 May 2012 10:43:53 -0700 X-Google-Sender-Auth: ffC3J0sl_bDEKkbCD4gU7S4_UGI Message-ID: From: Adrian Chadd To: Ryan J Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Where can I find information about the txpower and txpowmax values from ifconfig? 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: Sun, 06 May 2012 17:43:55 -0000 Hi, It's quite possibly a bug. Please file a PR. The values should all be stored internally in net80211 in 1/2 dBm increments. I think the ioctl API should also store all values in 1/2 dBm increments. I'd check two things: * that the net80211 maxtxpow values are always correct, assuming 1/2 dBm increments; * then I'd check ifconfig to ensure maxtxpow is always being printed correctly. Adrian