iwlwifi: mvm: Set valid TX antennas value before calib request
authorDor Shaish <dor.shaish@intel.com>
Wed, 27 Feb 2013 21:00:27 +0000 (23:00 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 4 Mar 2013 12:35:06 +0000 (13:35 +0100)
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>
drivers/net/wireless/iwlwifi/mvm/fw.c

index d3d959db03a9727e7033a871fc4717654dc3ec10..e6d51a9069c97024bb41d32a30686507457214bd 100644 (file)
@@ -446,6 +446,11 @@ int iwl_run_init_mvm_ucode(struct iwl_mvm *mvm, bool read_nvm)
        ret = iwl_nvm_check_version(mvm->nvm_data, mvm->trans);
        WARN_ON(ret);
 
+       /* Send TX valid antennas before triggering calibrations */
+       ret = iwl_send_tx_ant_cfg(mvm, mvm->nvm_data->valid_tx_ant);
+       if (ret)
+               goto error;
+
        /* Override the calibrations from TLV and the const of fw */
        iwl_set_default_calib_trigger(mvm);