diff options
author | Daniel C. Halperin <daniel.c.halperin@intel.com> | 2008-10-24 02:48:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:02:26 -0400 |
commit | 60d32215a94ebba2517b8d92612200ab610943fd (patch) | |
tree | fca4d39aa328c51e45caf60923b01cd28dab5060 /drivers | |
parent | f69f42a6bbefb311ccb1626fdb61f723160afbfd (diff) |
iwlwifi: convert correctly rate_n_flags to PLCP index for mimo3 packets
The driver does not properly convert rate_n_flags to PLCP index for mimo3
packets. This makes mac80211 drop the packets
Signed-off-by: Daniel C. Halperin <daniel.c.halperin@intel.com>
Reviewed-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index ba05f5ddc6d..a7cb40b0e1f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -120,7 +120,9 @@ int iwl_hwrate_to_plcp_idx(u32 rate_n_flags) | |||
120 | if (rate_n_flags & RATE_MCS_HT_MSK) { | 120 | if (rate_n_flags & RATE_MCS_HT_MSK) { |
121 | idx = (rate_n_flags & 0xff); | 121 | idx = (rate_n_flags & 0xff); |
122 | 122 | ||
123 | if (idx >= IWL_RATE_MIMO2_6M_PLCP) | 123 | if (idx >= IWL_RATE_MIMO3_6M_PLCP) |
124 | idx = idx - IWL_RATE_MIMO3_6M_PLCP; | ||
125 | else if (idx >= IWL_RATE_MIMO2_6M_PLCP) | ||
124 | idx = idx - IWL_RATE_MIMO2_6M_PLCP; | 126 | idx = idx - IWL_RATE_MIMO2_6M_PLCP; |
125 | 127 | ||
126 | idx += IWL_FIRST_OFDM_RATE; | 128 | idx += IWL_FIRST_OFDM_RATE; |