diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-11-10 12:56:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-15 13:26:51 -0500 |
commit | 2e1fea43aa170e18beb8378465e595e18cd08f6e (patch) | |
tree | 21c9e920df83fdc1715e5834449a0784a16f8de9 | |
parent | 35a6eb36520b938742d8680fd8d821df20982ced (diff) |
iwlagn: fix needed chains calculation
Garen noticed that this was wrong. Fix
the calibration -- default to multiple
chains and fall back to single where
possible.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c index 02288779a71f..1fab1bb5f2b4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | |||
@@ -458,11 +458,13 @@ static void iwlagn_check_needed_chains(struct iwl_priv *priv, | |||
458 | >> IEEE80211_HT_MCS_TX_MAX_STREAMS_SHIFT; | 458 | >> IEEE80211_HT_MCS_TX_MAX_STREAMS_SHIFT; |
459 | maxstreams += 1; | 459 | maxstreams += 1; |
460 | 460 | ||
461 | need_multiple = true; | ||
462 | |||
461 | if ((ht_cap->mcs.rx_mask[1] == 0) && | 463 | if ((ht_cap->mcs.rx_mask[1] == 0) && |
462 | (ht_cap->mcs.rx_mask[2] == 0)) | 464 | (ht_cap->mcs.rx_mask[2] == 0)) |
463 | need_multiple = false; | 465 | need_multiple = false; |
464 | if (maxstreams <= 1) | 466 | if (maxstreams <= 1) |
465 | need_multiple = true; | 467 | need_multiple = false; |
466 | } else { | 468 | } else { |
467 | /* | 469 | /* |
468 | * If at all, this can only happen through a race | 470 | * If at all, this can only happen through a race |