diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-01-27 03:21:03 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-30 13:38:25 -0500 |
commit | f46730d13f23b4578dca1c0f7663ea3093ff4f0e (patch) | |
tree | 2a69668ea4adb4ce7fd8316f5576cf0a219c32c5 /drivers | |
parent | 1286ec6d63c557aa203ab5af56962a3d37181771 (diff) |
ath9k: Setup short preamble properly in rate registration
This patch fixes an issue where hw_value_short was not being filled
with the proper ratecode during rate registration, but was being used
in the RX path for decoding the packet rate.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index e9b0684ea70e..d8e826659c15 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -217,7 +217,13 @@ static void ath_setup_rates(struct ath_softc *sc, enum ieee80211_band band) | |||
217 | for (i = 0; i < maxrates; i++) { | 217 | for (i = 0; i < maxrates; i++) { |
218 | rate[i].bitrate = rate_table->info[i].ratekbps / 100; | 218 | rate[i].bitrate = rate_table->info[i].ratekbps / 100; |
219 | rate[i].hw_value = rate_table->info[i].ratecode; | 219 | rate[i].hw_value = rate_table->info[i].ratecode; |
220 | if (rate_table->info[i].short_preamble) { | ||
221 | rate[i].hw_value_short = rate_table->info[i].ratecode | | ||
222 | rate_table->info[i].short_preamble; | ||
223 | rate[i].flags = IEEE80211_RATE_SHORT_PREAMBLE; | ||
224 | } | ||
220 | sband->n_bitrates++; | 225 | sband->n_bitrates++; |
226 | |||
221 | DPRINTF(sc, ATH_DBG_CONFIG, "Rate: %2dMbps, ratecode: %2d\n", | 227 | DPRINTF(sc, ATH_DBG_CONFIG, "Rate: %2dMbps, ratecode: %2d\n", |
222 | rate[i].bitrate / 10, rate[i].hw_value); | 228 | rate[i].bitrate / 10, rate[i].hw_value); |
223 | } | 229 | } |