aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
diff options
context:
space:
mode:
authorDaniel C Halperin <daniel.c.halperin@intel.com>2009-04-08 14:39:28 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-22 16:54:43 -0400
commitddfcf999274838a8dfb0ccf8e69fc1e50eea3341 (patch)
tree54fa0de3da52e7f97c9d8dd50c580a2e321d2240 /drivers/net/wireless/iwlwifi/iwl-agn-rs.c
parent12b9681721adb34b7ec42aa973ab96692998153d (diff)
iwlwifi: do not set dual_stream_ant_msk for 3 streams
This patch fixes a bug introduced by commit "iwlwifi: adding MIMO3 support in rate scaling". We should not set the dual_stream_ant_msk (for 2x2 MIMO) when using a 3x3 rate, this will cause a SYSASSERT in uCode. Note: there is no triple_stream_ant_msk, because all three antennas are used. Signed-off-by: Daniel C Halperin <daniel.c.halperin@intel.com> Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
index 786b11d52b45..98b6b37951b3 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
@@ -2666,9 +2666,6 @@ static void rs_fill_link_cmd(const struct iwl_priv *priv,
2666 } else if (num_of_ant(tbl_type.ant_type) == 2) { 2666 } else if (num_of_ant(tbl_type.ant_type) == 2) {
2667 lq_cmd->general_params.dual_stream_ant_msk = 2667 lq_cmd->general_params.dual_stream_ant_msk =
2668 tbl_type.ant_type; 2668 tbl_type.ant_type;
2669 } else if (num_of_ant(tbl_type.ant_type) == 3) {
2670 lq_cmd->general_params.dual_stream_ant_msk =
2671 tbl_type.ant_type;
2672 } /* otherwise we don't modify the existing value */ 2669 } /* otherwise we don't modify the existing value */
2673 2670
2674 index++; 2671 index++;