qca / qcamain_open_hal_public

QCA 10.x mainline reference HAL - AR9380 and later series 802.11n NICs
ISC License
22 stars 22 forks source link

power problem #3

Open chenhao890411 opened 11 years ago

chenhao890411 commented 11 years ago

hi: when i use 5.8GHz and 11na 2x2 mimo

in ar9300\ar9300_phy.c
extern void ar9300_adjust_reg_txpower_cdd(struct ath_hal *ah, u_int8_t powerPerRate[])

when i set power 1 cdd_power = -6 powerPerRate[i] = 250;

and in terminal i use the iwconfig tool

iwconfig

Tx-Power=128dBm

how can i fix it ?

extern void ar9300_adjust_reg_txpower_cdd(struct ath_hal ah, u_int8_t powerPerRate[]) { struct ath_hal_9300 ahp = AH9300(ah); -- int16_t twiceArrayGain ,cdd_power = 0; ++ int16_t twiceArrayGain = 0; int i; ++ u_int16_t cdd_power = 0; .... }

is that right?

erikarn commented 11 years ago

Hi!

What platform are you using the HAL on? Which driver/stack/OS?

Adrian

On 26 June 2013 23:58, chenhao890411 notifications@github.com wrote:

hi: when i use 5.8GHz and 11na 2x2 mimo

in ar9300\ar9300_phy.c

extern void ar9300_adjust_reg_txpower_cdd(struct ath_hal *ah, u_int8_t powerPerRate[])

when i set power 1 cdd_power = -6 powerPerRate[i] = 250;

and in terminal i use the iwconfig tool

iwconfig

Tx-Power=128dBm

how can i fix it ?

extern void ar9300_adjust_reg_txpower_cdd(struct ath_hal ah, u_int8_t powerPerRate[]) { struct ath_hal_9300 ahp = AH9300(ah); -- int16_t twiceArrayGain ,cdd_power = 0; ++ int16_t twiceArrayGain = 0; int i; ++ u_int16_t cdd_power = 0; .... }

is that right?

— Reply to this email directly or view it on GitHubhttps://github.com/qca/qcamain_open_hal_public/issues/3 .