rt2x00: Don't call ieee80211_get_tx_rate for MCS rates
authorHelmut Schaa <helmut.schaa@googlemail.com>
Thu, 3 Mar 2011 18:43:49 +0000 (19:43 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 4 Mar 2011 19:06:48 +0000 (14:06 -0500)
commit55b585e29095ce64900b6192aadf399fa007161e
treec2eb6fc35309bd9b1eb1c4e276b72943ce1d200b
parent2517794b702cf62bb049e57c0825fc4573f8a6a3
rt2x00: Don't call ieee80211_get_tx_rate for MCS rates

ieee80211_get_tx_rate is not valid for HT rates. Hence, restructure the
TX desciptor creation to be aware of MCS rates. The generic TX desciptor
creation now cares about the rate_mode (CCK, OFDM, MCS, GF).

As a result, ieee80211_get_tx_rate gets only called for legacy rates.

Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
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/rt2x00ht.c
drivers/net/wireless/rt2x00/rt2x00queue.c