aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 63f20370032d..38866ab0040f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -590,8 +590,12 @@ static void iwl3945_add_radiotap(struct iwl3945_priv *priv,
590 590
591 if (rate == -1) 591 if (rate == -1)
592 iwl3945_rt->rt_rate = 0; 592 iwl3945_rt->rt_rate = 0;
593 else 593 else {
594 if (stats->band == IEEE80211_BAND_5GHZ)
595 rate += IWL_FIRST_OFDM_RATE;
596
594 iwl3945_rt->rt_rate = iwl3945_rates[rate].ieee; 597 iwl3945_rt->rt_rate = iwl3945_rates[rate].ieee;
598 }
595 599
596 /* antenna number */ 600 /* antenna number */
597 antenna = phy_flags_hw & RX_RES_PHY_FLAGS_ANTENNA_MSK; 601 antenna = phy_flags_hw & RX_RES_PHY_FLAGS_ANTENNA_MSK;