Skip to contentSkip to conversation

AR93xx TX Descriptor

ath9k-devel Falk-Moritz Schaefer 2 participants 4 messages May 25, 2011 – May 26, 2011

lore
Share & tools
lore
#0 lore raw

Does anybody has a clue, what might be preventing AR93xx to use the transmit power given in the tx descriptor?

Regards, Falk

Quoted 14 lines

-----Original Message-----
From: ath9k-devel-bounces at venema.h4ckr.net [mailto:ath9k-devel- bounces at venema.h4ckr.net] On Behalf Of Falk-Moritz Schaefer
Sent: Thursday, May 19, 2011 1:13 PM
To: ath9k-devel at venema.h4ckr.net
Subject: [ath9k-devel] TxPower setting on per packet basis for 9003_phy (AR9382)

Hi,

it is possible to set the default txpower limits with iw for my WPEA-121N AR9382 card, but not to set the txpower on per packet basis. I want the AR9382 to use the TxPower settings in the tx control descriptor.

Quoted 5 lines

With 9002 it was enough to write:
REG_WRITE(ah, AR_PHY_POWER_TX_RATE_MAX, MAX_RATE_POWER | AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE);

But with 9003 somehow it does not use the information in the tx

descpritor.

Quoted 9 lines

What am I missing?

BR,
Falk

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#1 lore raw
Quoted 2 lines · Falk-Moritz Schaefer

Does anybody has a clue, what might be preventing AR93xx to use the transmit power given in the tx descriptor?

looking at this function may help ar9003_eeprom.c
/* Set tx power registers to array of values passed in */ static int ar9003_hw_tx_power_regwrite(struct ath_hw *ah, u8 * pPwrArray) {

Quoted 38 lines

Regards, Falk

Quoted 14 lines

-----Original Message-----
From: ath9k-devel-bounces at venema.h4ckr.net [mailto:ath9k-devel- bounces at venema.h4ckr.net] On Behalf Of Falk-Moritz Schaefer
Sent: Thursday, May 19, 2011 1:13 PM
To: ath9k-devel at venema.h4ckr.net
Subject: [ath9k-devel] TxPower setting on per packet basis for 9003_phy (AR9382)

Hi,

it is possible to set the default txpower limits with iw for my WPEA-121N AR9382 card, but not to set the txpower on per packet basis. I want the AR9382 to use the TxPower settings in the tx control descriptor.

Quoted 5 lines

With 9002 it was enough to write:
REG_WRITE(ah, AR_PHY_POWER_TX_RATE_MAX, MAX_RATE_POWER | AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE);

But with 9003 somehow it does not use the information in the tx

descpritor.

Quoted 9 lines

What am I missing?

BR,
Falk

_______________________________________________
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

#2 lore raw

Doesnt this function set the default values that are used (e.g. triggered by "set iw txpower").

What I am wondering, is how I can configure the chip not to use the default values, but to use the information in the control descriptor of the packet.

Quoted 60 lines

-----Original Message-----
From: Mohammed Shafi [mailto:shafi.ath9k at gmail.com]
Sent: Wednesday, May 25, 2011 4:52 PM
To: Falk-Moritz Schaefer
Cc: ath9k-devel at venema.h4ckr.net
Subject: Re: [ath9k-devel] AR93xx TX Descriptor

Quoted 2 lines · Falk-Moritz Schaefer

Does anybody has a clue, what might be preventing AR93xx to use the transmit power given in the tx descriptor?

looking at this function may help ar9003_eeprom.c
/* Set tx power registers to array of values passed in */ static int ar9003_hw_tx_power_regwrite(struct ath_hw *ah, u8 * pPwrArray) {

Quoted 41 lines

Regards, Falk

Quoted 17 lines

-----Original Message-----
From: ath9k-devel-bounces at venema.h4ckr.net [mailto:ath9k-devel- bounces at venema.h4ckr.net] On Behalf Of Falk-Moritz Schaefer
Sent: Thursday, May 19, 2011 1:13 PM
To: ath9k-devel at venema.h4ckr.net
Subject: [ath9k-devel] TxPower setting on per packet basis for 9003_phy
(AR9382)

Hi,

it is possible to set the default txpower limits with iw for my WPEA-121N
AR9382 card, but not to set the txpower on per packet basis. I want the
AR9382 to use the TxPower settings in the tx control descriptor.

Quoted 5 lines

With 9002 it was enough to write:
REG_WRITE(ah, AR_PHY_POWER_TX_RATE_MAX, MAX_RATE_POWER | AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE);

But with 9003 somehow it does not use the information in the tx

descpritor.

Quoted 9 lines

What am I missing?

BR,
Falk

_______________________________________________
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

#3 lore raw
Quoted 5 lines · Falk-Moritz Schaefer

Doesnt this function set the default values that are used (e.g. triggered by "set iw txpower").

What I am wondering, is how I can configure the chip not to use the default values, but to use the information in the control descriptor of the packet.

I am also looking at the power stuff for PAPRD and had encountered some problems for HT40 things, need some time to know what's happening... add to it the regulatory thing!

Quoted 64 lines
Quoted 62 lines

-----Original Message-----
From: Mohammed Shafi [mailto:shafi.ath9k at gmail.com]
Sent: Wednesday, May 25, 2011 4:52 PM
To: Falk-Moritz Schaefer
Cc: ath9k-devel at venema.h4ckr.net
Subject: Re: [ath9k-devel] AR93xx TX Descriptor

Quoted 2 lines · Falk-Moritz Schaefer

Does anybody has a clue, what might be preventing AR93xx to use the transmit power given in the tx descriptor?

looking at this function may help ar9003_eeprom.c
/* Set tx power registers to array of values passed in */ static int ar9003_hw_tx_power_regwrite(struct ath_hw *ah, u8 * pPwrArray) {

Quoted 41 lines

Regards, Falk

Quoted 17 lines

-----Original Message-----
From: ath9k-devel-bounces at venema.h4ckr.net [mailto:ath9k-devel- bounces at venema.h4ckr.net] On Behalf Of Falk-Moritz Schaefer
Sent: Thursday, May 19, 2011 1:13 PM
To: ath9k-devel at venema.h4ckr.net
Subject: [ath9k-devel] TxPower setting on per packet basis for 9003_phy
(AR9382)

Hi,

it is possible to set the default txpower limits with iw for my WPEA-121N
AR9382 card, but not to set the txpower on per packet basis. I want the
AR9382 to use the TxPower settings in the tx control descriptor.

Quoted 5 lines

With 9002 it was enough to write:
REG_WRITE(ah, AR_PHY_POWER_TX_RATE_MAX, MAX_RATE_POWER | AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE);

But with 9003 somehow it does not use the information in the tx

descpritor.

Quoted 9 lines

What am I missing?

BR,
Falk

_______________________________________________
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