diff options
author | Grumbach, Emmanuel <emmanuel.grumbach@intel.com> | 2008-09-02 23:26:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-11 15:53:31 -0400 |
commit | 04816448d8b77551834c9ea01e407ef5f0042f0f (patch) | |
tree | e3c1e019045e0d275f67f79b32ca3fae5e74c2ae /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | 12837be1c127e6fba2e3f916a18fc202a9889af2 (diff) |
iwlwifi: use the results from disconnected antenna algorithm
This patch makes usage of the results from disconnected antenna alg to
know how many antennas are connected.
It also synchronizes between the chain noise alg and the W/A that
disables power management during association. All the antennas must be
enables during the chain noise algorithm. Hence, power management is
restored only after the completion of the algorithm.
In the future, we will need to update the AP that we don't support MIMO
if there is only one antenna connected. We also need to update the rate
scaling algorithm.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 78902da3d516..914a3ca54600 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -2558,7 +2558,11 @@ static void iwl4965_post_associate(struct iwl_priv *priv) | |||
2558 | iwl_activate_qos(priv, 0); | 2558 | iwl_activate_qos(priv, 0); |
2559 | spin_unlock_irqrestore(&priv->lock, flags); | 2559 | spin_unlock_irqrestore(&priv->lock, flags); |
2560 | 2560 | ||
2561 | iwl_power_enable_management(priv); | 2561 | /* the chain noise calibration will enabled PM upon completion |
2562 | * If chain noise has already been run, then we need to enable | ||
2563 | * power management here */ | ||
2564 | if (priv->chain_noise_data.state == IWL_CHAIN_NOISE_DONE) | ||
2565 | iwl_power_enable_management(priv); | ||
2562 | 2566 | ||
2563 | /* Enable Rx differential gain and sensitivity calibrations */ | 2567 | /* Enable Rx differential gain and sensitivity calibrations */ |
2564 | iwl_chain_noise_reset(priv); | 2568 | iwl_chain_noise_reset(priv); |