Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e07cbb53 authored by Dor Shaish's avatar Dor Shaish Committed by Johannes Berg
Browse files

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: default avatarDor Shaish <dor.shaish@intel.com>
Reviewed-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 715c998f
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -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);
	ret = iwl_nvm_check_version(mvm->nvm_data, mvm->trans);
	WARN_ON(ret);
	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 */
	/* Override the calibrations from TLV and the const of fw */
	iwl_set_default_calib_trigger(mvm);
	iwl_set_default_calib_trigger(mvm);