diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-04-23 14:43:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-23 14:43:45 -0400 |
commit | 3b51cc996e81d8a113416d8094fa4a88f8360a51 (patch) | |
tree | e75b98b228bb4e456c30673fcc4b56ffa1d09cf5 /drivers/net/wireless/iwlwifi/iwl-sta.c | |
parent | c68ed255265968c3948fa2678bf59d15c471b055 (diff) | |
parent | 672724403b42da1d276c6cf811e8e34d15efd964 (diff) |
Merge branch 'master' into for-davem
Conflicts:
drivers/net/wireless/ath/ath9k/phy.c
drivers/net/wireless/iwlwifi/iwl-6000.c
drivers/net/wireless/iwlwifi/iwl-debugfs.c
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-sta.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sta.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c index d86ecd2f9ec2..db934476b5e9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sta.c +++ b/drivers/net/wireless/iwlwifi/iwl-sta.c | |||
@@ -451,7 +451,17 @@ static void iwl_sta_init_lq(struct iwl_priv *priv, const u8 *addr, bool is_ap) | |||
451 | 451 | ||
452 | link_cmd.general_params.single_stream_ant_msk = | 452 | link_cmd.general_params.single_stream_ant_msk = |
453 | first_antenna(priv->hw_params.valid_tx_ant); | 453 | first_antenna(priv->hw_params.valid_tx_ant); |
454 | link_cmd.general_params.dual_stream_ant_msk = 3; | 454 | |
455 | link_cmd.general_params.dual_stream_ant_msk = | ||
456 | priv->hw_params.valid_tx_ant & | ||
457 | ~first_antenna(priv->hw_params.valid_tx_ant); | ||
458 | if (!link_cmd.general_params.dual_stream_ant_msk) { | ||
459 | link_cmd.general_params.dual_stream_ant_msk = ANT_AB; | ||
460 | } else if (num_of_ant(priv->hw_params.valid_tx_ant) == 2) { | ||
461 | link_cmd.general_params.dual_stream_ant_msk = | ||
462 | priv->hw_params.valid_tx_ant; | ||
463 | } | ||
464 | |||
455 | link_cmd.agg_params.agg_dis_start_th = LINK_QUAL_AGG_DISABLE_START_DEF; | 465 | link_cmd.agg_params.agg_dis_start_th = LINK_QUAL_AGG_DISABLE_START_DEF; |
456 | link_cmd.agg_params.agg_time_limit = | 466 | link_cmd.agg_params.agg_time_limit = |
457 | cpu_to_le16(LINK_QUAL_AGG_TIME_LIMIT_DEF); | 467 | cpu_to_le16(LINK_QUAL_AGG_TIME_LIMIT_DEF); |
@@ -1196,7 +1206,6 @@ int iwl_send_lq_cmd(struct iwl_priv *priv, | |||
1196 | iwl_dump_lq_cmd(priv, lq); | 1206 | iwl_dump_lq_cmd(priv, lq); |
1197 | BUG_ON(init && (cmd.flags & CMD_ASYNC)); | 1207 | BUG_ON(init && (cmd.flags & CMD_ASYNC)); |
1198 | 1208 | ||
1199 | iwl_dump_lq_cmd(priv, lq); | ||
1200 | ret = iwl_send_cmd(priv, &cmd); | 1209 | ret = iwl_send_cmd(priv, &cmd); |
1201 | if (ret || (cmd.flags & CMD_ASYNC)) | 1210 | if (ret || (cmd.flags & CMD_ASYNC)) |
1202 | return ret; | 1211 | return ret; |