diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2010-08-23 13:56:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-25 14:34:55 -0400 |
commit | 8d1331b37d5b656a7a8e561f8e9d7661dd00c910 (patch) | |
tree | 2fd13c84b703b7dcf54b0f8293aeda8eec72228a /drivers/net/wireless/rt2x00/rt2x00.h | |
parent | 46323e112ce2a0fdaf2dd5389f95b248576b8fda (diff) |
rt2x00: Fix max TX power settings
During initialization each driver reads the default TX power
for each individual channel. However mac80211 only accepts the
maximum value (which is also handled as default value).
As a result, the TX power of the device was being limited to
the default value, which is often quite low compared to the
real maximum acceptable value.
This patch allows each driver to set the maximum value on a
per-channel basis which is forwarded to mac80211. The default
value will be preserved for now, in case we want to update
mac80211 to differentiate between the maximum and default txpower.
This fixes bug complaining about limited TX power values like:
https://bugzilla.kernel.org/show_bug.cgi?id=16358
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 69308a0df74f..762f6b4e7afc 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -213,8 +213,9 @@ struct channel_info { | |||
213 | unsigned int flags; | 213 | unsigned int flags; |
214 | #define GEOGRAPHY_ALLOWED 0x00000001 | 214 | #define GEOGRAPHY_ALLOWED 0x00000001 |
215 | 215 | ||
216 | short tx_power1; | 216 | short max_power; |
217 | short tx_power2; | 217 | short default_power1; |
218 | short default_power2; | ||
218 | }; | 219 | }; |
219 | 220 | ||
220 | /* | 221 | /* |