diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-11-25 14:11:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-28 14:44:25 -0500 |
commit | c27bdc84d6310914cfdd59280c2e663588392d01 (patch) | |
tree | 4a78bf8e3709c1596f413f8a84f6fa8c126e7bea /drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | |
parent | aed666e5e88a27f600187f960d306a028f4883ea (diff) |
iwlagn: remove calibration knowledge
The init microcode knows very well which calibrations
are required and sends us results for those that are.
Consequently, we can just send all of those to the RT
uCode again.
The problem with having the driver know about this is
that it is a uCode feature, not a hardware feature so
the config is completely unsuitable.
The only thing we need to check is whether the device
needs crystal calibration or not, add a new parameter
to the configuration for that.
This makes new uCode work on 6000 series devices.
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-ucode.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c b/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c index 9ec315b31d45..7043fdb13986 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | |||
@@ -477,9 +477,11 @@ static int iwlagn_alive_notify(struct iwl_priv *priv) | |||
477 | if (ret) | 477 | if (ret) |
478 | return ret; | 478 | return ret; |
479 | 479 | ||
480 | ret = iwlagn_set_Xtal_calib(priv); | 480 | if (!priv->cfg->no_xtal_calib) { |
481 | if (ret) | 481 | ret = iwlagn_set_Xtal_calib(priv); |
482 | return ret; | 482 | if (ret) |
483 | return ret; | ||
484 | } | ||
483 | 485 | ||
484 | return iwl_send_calib_results(priv); | 486 | return iwl_send_calib_results(priv); |
485 | } | 487 | } |