Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 301036
b: refs/heads/master
c: 6010e72
h: refs/heads/master
v: v3
  • Loading branch information
Gabor Juhos authored and John W. Linville committed Apr 17, 2012
1 parent 0be625b commit 903ed1f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e66eda1d40c9ce3ff38782da066a14e1b88ac50
refs/heads/master: 6010e72cdf3cb614278812cb00ecff2d1aee03dc
8 changes: 4 additions & 4 deletions trunk/drivers/net/wireless/ath/ath9k/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ u16 ath9k_hw_get_scaled_power(struct ath_hw *ah, u16 power_limit,
case 1:
break;
case 2:
reduction += REDUCE_SCALED_POWER_BY_TWO_CHAIN;
reduction += POWER_CORRECTION_FOR_TWO_CHAIN;
break;
case 3:
reduction += REDUCE_SCALED_POWER_BY_THREE_CHAIN;
reduction += POWER_CORRECTION_FOR_THREE_CHAIN;
break;
}

Expand All @@ -327,10 +327,10 @@ void ath9k_hw_update_regulatory_maxpower(struct ath_hw *ah)
case 1:
break;
case 2:
regulatory->max_power_level += INCREASE_MAXPOW_BY_TWO_CHAIN;
regulatory->max_power_level += POWER_CORRECTION_FOR_TWO_CHAIN;
break;
case 3:
regulatory->max_power_level += INCREASE_MAXPOW_BY_THREE_CHAIN;
regulatory->max_power_level += POWER_CORRECTION_FOR_THREE_CHAIN;
break;
default:
ath_dbg(common, EEPROM, "Invalid chainmask configuration\n");
Expand Down
7 changes: 2 additions & 5 deletions trunk/drivers/net/wireless/ath/ath9k/eeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,8 @@
#define SUB_NUM_CTL_MODES_AT_5G_40 2
#define SUB_NUM_CTL_MODES_AT_2G_40 3

#define INCREASE_MAXPOW_BY_TWO_CHAIN 6 /* 10*log10(2)*2 */
#define INCREASE_MAXPOW_BY_THREE_CHAIN 10 /* 10*log10(3)*2 */

#define REDUCE_SCALED_POWER_BY_TWO_CHAIN 6 /* 10*log10(2)*2 */
#define REDUCE_SCALED_POWER_BY_THREE_CHAIN 10 /* 10*log10(3)*2 */
#define POWER_CORRECTION_FOR_TWO_CHAIN 6 /* 10*log10(2)*2 */
#define POWER_CORRECTION_FOR_THREE_CHAIN 10 /* 10*log10(3)*2 */

/*
* For AR9285 and later chipsets, the following bits are not being programmed
Expand Down

0 comments on commit 903ed1f

Please sign in to comment.