diff options
author | Dor Shaish <dor.shaish@intel.com> | 2013-02-27 16:00:27 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-04 07:35:06 -0500 |
commit | e07cbb536acb249db5fd63f6884354630ae875ad (patch) | |
tree | 4c5b96d72f573bcdb271792989db429d52fa9a4f /drivers/net | |
parent | 715c998ff4d1106c3096bc5a48e4196663e6701a (diff) |
iwlwifi: mvm: Set valid TX antennas value before calib request
We must set the valid TX antennas number in the ucode before
sending the phy_cfg_cmd and request for calibrations.
Signed-off-by: Dor Shaish <dor.shaish@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/fw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/fw.c b/drivers/net/wireless/iwlwifi/mvm/fw.c index d3d959db03a9..e6d51a9069c9 100644 --- a/drivers/net/wireless/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/iwlwifi/mvm/fw.c | |||
@@ -446,6 +446,11 @@ int iwl_run_init_mvm_ucode(struct iwl_mvm *mvm, bool read_nvm) | |||
446 | ret = iwl_nvm_check_version(mvm->nvm_data, mvm->trans); | 446 | ret = iwl_nvm_check_version(mvm->nvm_data, mvm->trans); |
447 | WARN_ON(ret); | 447 | WARN_ON(ret); |
448 | 448 | ||
449 | /* Send TX valid antennas before triggering calibrations */ | ||
450 | ret = iwl_send_tx_ant_cfg(mvm, mvm->nvm_data->valid_tx_ant); | ||
451 | if (ret) | ||
452 | goto error; | ||
453 | |||
449 | /* Override the calibrations from TLV and the const of fw */ | 454 | /* Override the calibrations from TLV and the const of fw */ |
450 | iwl_set_default_calib_trigger(mvm); | 455 | iwl_set_default_calib_trigger(mvm); |
451 | 456 | ||