From: Robert Budde Date: Fri, 8 Jul 2011 14:57:54 +0200 Subject: [ath9k-devel] AR9380 - Transmit power control per packet In-Reply-To: References: <001501cc3a22$f49d4b70$ddd7e250$@gmx.net> <000801cc3d50$d4373e50$7ca5baf0$@gmx.net> Message-ID: <001501cc3d6e$a71c7a20$f5556e60$@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hi! We are using TPC per packet with the ath9k driver for AR5416/AR5418 and AR9280 chipsets. All these chipsets work as expected if you 1. add "REG_WRITE(ah, AR_PHY_POWER_TX_RATE_MAX, MAX_RATE_POWER | AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE); " to "ar5008_hw_process_ini" in "ar5008_phy.c" after " ah->eep_ops->set_txpower" 2. replace "MAX_RATE_POWER" in "ath9k_hw_set11n_txdesc(ah, ds, fi->framelen, frm_type, MAX_RATE_POWER, fi->keyix, fi->keytype, bf->bf_flags);" in function "ath_tx_setup_buffer" of "xmit.c" with some arbitrary value between 1 and 20 You can observe how the tx power changes accordingly when altering the power-value. Enabling the TPC the same way in "ar9003_phy.c" (see step 1) does not change anything. The tx power is always maximum, no matter what is written to the tx descriptor. Cards are Sparklan WPEA-127N. Regarding the EEPROM we think that it should work by writing to the tx descriptor no matter what is stored in the EEPROM. Further, as we are also not able to REDUCE the tx-power, it looks uncertain that this problem is caused by the EEPROM. Best regards Robert -----Urspr?ngliche Nachricht----- Von: ath9k-devel-bounces at lists.ath9k.org [mailto:ath9k-devel-bounces at lists.ath9k.org] Im Auftrag von Mohammed Shafi Gesendet: Freitag, 8. Juli 2011 14:00 An: Robert Budde Cc: ath9k-devel at lists.ath9k.org Betreff: Re: [ath9k-devel] AR9380 - Transmit power control per packet On Fri, Jul 8, 2011 at 2:54 PM, Robert Budde wrote: > Does nobody have a clue about the problem? Reproducing the issue is > totally > easy: Just set the AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE bit in the > AR_PHY_POWER_TX_RATE_MAX register and write a tx-power to the packet > descriptor - it won't work! Is nobody at Atheros bothered by the fact > that transmit control per packet is obviously not working with their > latest product on the market? can you please elaborate on this more and in detail. I have not looked into this previously and it will be help me read some docs and fix the issue. I understand AR9300 has a different TPC. > > Best regards, > Robert > > _______________________________________________ > ath9k-devel mailing list > ath9k-devel at lists.ath9k.org > https://lists.ath9k.org/mailman/listinfo/ath9k-devel > > _______________________________________________ > ath9k-devel mailing list > ath9k-devel at lists.ath9k.org > https://lists.ath9k.org/mailman/listinfo/ath9k-devel > -- shafi _______________________________________________ ath9k-devel mailing list ath9k-devel at lists.ath9k.org https://lists.ath9k.org/mailman/listinfo/ath9k-devel