From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Budde Date: Tue, 12 Jul 2011 09:33:01 +0200 Subject: [ath9k-devel] AR9380 - Transmit power control per packet In-Reply-To: <20110712070355.GA7162@infinet.ru> References: <001501cc3a22$f49d4b70$ddd7e250$@gmx.net> <000801cc3d50$d4373e50$7ca5baf0$@gmx.net> <20110708112722.GA7392@infinet.ru> <20110708141933.GA7759@infinet.ru> <20110711104806.GA1994@infinet.ru> <20110711151328.GA2696@infinet.ru> <20110712070355.GA7162@infinet.ru> Message-ID: <001101cc4065$ef22eda0$cd68c8e0$@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 Alex, you are GREAT! Thank you so much! For some reason whatsoever we missed checking the AR_PHY_PWRTX_MAX register. We checked everything regarding power settings, but as the AR_PHY_PWRTX_MAX is never used we must have missed that. After a quick check, everything works perfect. Great job! 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 Alex Hacker Gesendet: Dienstag, 12. Juli 2011 09:04 An: ath9k-devel at venema.h4ckr.net Betreff: Re: [ath9k-devel] AR9380 - Transmit power control per packet I found the cause of TPC malfunction. As I assumed early, usage of AR_PHY_POWER_TX_RATE_MAX register in AR9380 is incorrect. The following lines should be removed from ar9003_phy.h file. These registers does not exists: --- ar9003_phy.h.orig 2011-03-30 16:25:00.000000000 +0600 +++ ar9003_phy.h 2011-07-12 12:53:30.000000000 +0600 @@ -733,9 +733,6 @@ #define AR_PHY_TXGAIN_FORCED_TXBB1DBGAIN 0x0000000e #define AR_PHY_TXGAIN_FORCED_TXBB1DBGAIN_S 1 -#define AR_PHY_POWER_TX_RATE1 0x9934 -#define AR_PHY_POWER_TX_RATE2 0x9938 -#define AR_PHY_POWER_TX_RATE_MAX 0x993c #define AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE 0x00000040 #define PHY_AGC_CLR 0x10000000 #define RFSILENT_BB 0x00002000 The AR_PHY_PWRTX_MAX register should be used instead. This register currently do not hold MAX_RATE_POWER value, but 6th bit controls the TPC enable. Now all works as expected for AR9380. Best regards, Alex. _______________________________________________ ath9k-devel mailing list ath9k-devel at lists.ath9k.org https://lists.ath9k.org/mailman/listinfo/ath9k-devel