Skip to contentSkip to conversation

ath9k:Descriptor(or Per packet) based TPC

ath9k-devel Anu Krishnamoorthy 2 participants 2 messages Nov 24, 2009

lore
Share & tools
lore
#0 lore raw

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20091124/d56372d4/attachment.htm

#1 lore raw
Quoted 7 lines · Anu Krishnamoorthy

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