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:
19f3fa2
)
rt2800: compensate tx power also for non 11b rates on 2GHz
author
Stanislaw Gruszka
<
[email protected]
>
Fri, 5 Oct 2012 11:44:11 +0000
(13:44 +0200)
committer
John W. Linville
<
[email protected]
>
Fri, 19 Oct 2012 19:53:10 +0000
(15:53 -0400)
We skip compensate calculation for non 11b rates on 2.4GHz band. I do
not see that on vendor driver
(2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO).
Signed-off-by: Stanislaw Gruszka <
[email protected]
>
Acked-by: Helmut Schaa <
[email protected]
>
Acked-by: Gertjan van Wingerde <
[email protected]
>
Acked-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 6bbd60243dc492a9f8931b96dd0293a87a3de302..2db6842834199bbafc1d21a4ff3d694e3fb50ac7 100644
(file)
--- a/
drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/
drivers/net/wireless/rt2x00/rt2800lib.c
@@
-2531,9
+2531,6
@@
static u8 rt2800_compensate_txpower(struct rt2x00_dev *rt2x00dev, int is_rate_b,
u8 eirp_txpower_criterion;
u8 reg_limit;
- if (!((band == IEEE80211_BAND_5GHZ) && is_rate_b))
- return txpower;
-
if (test_bit(CAPABILITY_POWER_LIMIT, &rt2x00dev->cap_flags)) {
/*
* Check if eirp txpower exceed txpower_limit.