rt2x00: Limit txpower by eeprom values
authorHelmut Schaa <helmut.schaa@googlemail.com>
Sun, 11 Jul 2010 10:23:09 +0000 (12:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Jul 2010 20:05:32 +0000 (16:05 -0400)
commit5e846004914d2295e020edd48a828b653323f93e
tree2a5d150d952cb42c5d798d19e3caad9b50c55c2d
parent8b967e41e0f75328150b7cddf79de4ee57616f01
rt2x00: Limit txpower by eeprom values

Limit the txpower per rate by the approriate values in the eeprom.
This avoids too high txpower values resulting in bad tx performance.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800.h
drivers/net/wireless/rt2x00/rt2800lib.c