Return-path: Received: from mail-we0-f182.google.com ([74.125.82.182]:55337 "EHLO mail-we0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751602AbaC1OuC convert rfc822-to-8bit (ORCPT ); Fri, 28 Mar 2014 10:50:02 -0400 Received: by mail-we0-f182.google.com with SMTP id p61so2781559wes.13 for ; Fri, 28 Mar 2014 07:50:00 -0700 (PDT) Content-Type: text/plain; charset=US-ASCII Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: Setting txpower fails? From: Bruno Antunes In-Reply-To: <53358920.6030304@candelatech.com> Date: Fri, 28 Mar 2014 14:49:58 +0000 Cc: linux-wireless@vger.kernel.org, sedat.dilek@gmail.com Message-Id: <8BD1BFE8-263F-4EDC-8044-30F4FBC44041@gmail.com> (sfid-20140328_155007_819287_01307E54) References: <5334F8E7.1070803@candelatech.com> <533584BF.70604@candelatech.com> <4CC49FDB-1767-4A3F-9C1D-8F8DCF612233@gmail.com> <53358920.6030304@candelatech.com> To: Ben Greear Sender: linux-wireless-owner@vger.kernel.org List-ID: On 28 Mar, 2014, at 14:37 , Ben Greear wrote: > On 03/28/2014 07:29 AM, Bruno Antunes wrote: >> Hi Ben, >> I think you are missing some parameters >> >> On 28 Mar, 2014, at 14:18 , Ben Greear wrote: >> >>> On 03/28/2014 12:27 AM, Sedat Dilek wrote: >>>> On Fri, Mar 28, 2014 at 5:21 AM, Ben Greear wrote: >>>>> Any idea why this isn't working? >>>>> >>>>> Kernel is 3.9.11+, driver is ath9k. >>>>> >>>>> [root@ct523-9292 lanforge]# iwconfig wlan0 >>>>> wlan0 IEEE 802.11abgn ESSID:off/any >>>>> Mode:Managed Access Point: Not-Associated Tx-Power=16 dBm >>>>> Retry short limit:7 RTS thr:off Fragment thr:off >>>>> Encryption key:off >>>>> Power Management:off >>>>> >>>>> [root@ct523-9292 lanforge]# iwconfig wlan0 txpower 10 >> >> iw dev set txpower [] >> >> It should be something like: >> >> iw dev wlan0 set txpower fixed 1000 > > Ok, that doesn't give an error, but 'iwconfig' still shows 16 dBm, > and I don't see any way to get 'iw' to print out the power itself? > > So, not sure if it is really working or not. It works , at least on iw 3.10. If you have debug enabled you can see the value changing. On a openwrt system root@RSPro2:/lib/wifi# iw dev adhoc0 set txpower fixed 900 root@RSPro2:/lib/wifi# cat /sys/kernel/debug/ieee80211/phy0/netdev:adhoc0/txpower 9 root@RSPro2:/lib/wifi# iw dev adhoc0 set txpower fixed 1500 root@RSPro2:/lib/wifi# cat /sys/kernel/debug/ieee80211/phy0/netdev:adhoc0/txpower 15 And the received power changes on the station confirming that is making effect. Bruno > > Thanks, > Ben > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com >