rt2x00: Fix TX rate short preamble detection
authorIvo van Doorn <ivdoorn@gmail.com>
Sun, 18 Jan 2009 19:15:24 +0000 (20:15 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 22 Jan 2009 18:55:01 +0000 (13:55 -0500)
commit7490889c105764d80af58dee5983d91a84e4aec8
tree2dbd5152c71da46d30cf4a343aa885482c403e5c
parent391429c18f58ae37cc2e254e408bff847f4beb21
rt2x00: Fix TX rate short preamble detection

Mac80211 provides 2 structures to handle bitrates, namely
ieee80211_rate and ieee80211_tx_rate. To determine the short preamble
mode for an outgoing frame, the flag IEEE80211_TX_RC_USE_SHORT_PREAMBLE
must be checked on ieee80211_tx_rate and not ieee80211_rate (which rt2x00 did).

This fixes a regression which was triggered in 2.6.29-rcX as reported by Chris Clayton.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Tested-By: Chris Clayton <chris2553@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00queue.c