From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luis R. Rodriguez Date: Tue, 24 Nov 2009 09:29:45 -0800 Subject: [ath9k-devel] ath9k:Descriptor(or Per packet) based TPC In-Reply-To: <845455.27243.qm@web34302.mail.mud.yahoo.com> References: <845455.27243.qm@web34302.mail.mud.yahoo.com> Message-ID: <20091124172944.GC3726@tux> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Tue, Nov 24, 2009 at 09:00:58AM -0800, Anu Krishnamoorthy wrote: > Hi, > > I had implemented descriptor based TPC(per packet TPC) for ath9k by setting the various TxPower control fields within the Tx Descriptor (set11n_txdesc) for the Tx frames. From my testing, for some reason the Tx power values present in the descriptor are not applied by the hardware(I am using ar5416 based card). In contrast, if "iwconfig txpower" (in spite of the known bug) is used(forced to apply by down/up'ing the interface) the power change is noticed from the sniffer. > Is any additional setup(transmit queue, txdesc interrupt or hardware setup) needs to be done to force the hardware read and process the tx descriptors? Appreciate if any one could shed more light on it or share their own experience if they had tried to implement this feature. > > Thanks, > Ramkumar. The tx power setting was just set on the sc struct, we likely need a reset so that when tx power is changed it actually takes effect. There may be an easier way but I haven't had time to look at this yet. Luis