rt2x00: Don't recalculate HT40 compensation for each rate
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 28 Mar 2011 11:32:01 +0000 (13:32 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Apr 2011 20:20:02 +0000 (16:20 -0400)
commit2af242e19f06cfaade7ac8608c9df8af1e0fbb34
treea7492fb3651ad39cc053e64f0af19469f1958f2d
parent75faae8b80171b447bfc4bac448308676fb8a663
rt2x00: Don't recalculate HT40 compensation for each rate

Previously the HT40 tx power compensation value was calculated for each
rate. However, the calculation is independent of the tx rate and as such
can be precalculated and just passed in for each rate.

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/rt2800lib.c