projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bdcd09
)
rt2x00: Enable PA_PE bits in TX_PIN_CFG according to active band.
author
Gertjan van Wingerde
<
[email protected]
>
Wed, 18 May 2011 18:25:05 +0000
(20:25 +0200)
committer
John W. Linville
<
[email protected]
>
Wed, 1 Jun 2011 19:10:58 +0000
(15:10 -0400)
(split off from the earlier RT35xx patch submitted by Shiang)
There's no point in enabling the PA_PE bits for the bands that we are
not active on.
Signed-off-by: Shiang Tu <
[email protected]
>
Signed-off-by: Gertjan van Wingerde <
[email protected]
>
Signed-off-by: Ivo van Doorn <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/rt2x00/rt2800lib.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rt2x00/rt2800lib.c
b/drivers/net/wireless/rt2x00/rt2800lib.c
index 2a6aa85cc6c9df67ab072e7a53d74cb29c622da6..0fab3152f2c0c95bd93a4856ae851cc8308f89e7 100644
(file)
--- a/
drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/
drivers/net/wireless/rt2x00/rt2800lib.c
@@
-1795,8
+1795,10
@@
static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev,
/* Turn on unused PA or LNA when not using 1T or 1R */
if (rt2x00dev->default_ant.tx_chain_num == 2) {
- rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_A1_EN, 1);
- rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_G1_EN, 1);
+ rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_A1_EN,
+ rf->channel > 14);
+ rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_G1_EN,
+ rf->channel <= 14);
}
/* Turn on unused PA or LNA when not using 1T or 1R */