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

Commit 6fef00d5 authored by Gregory Greenman's avatar Gregory Greenman Committed by Luca Coelho
Browse files

iwlwifi: mvm: rs: add sanity check when sending LQ command



When sending LQ command, verify the rate scaling is not in firmware.

Signed-off-by: default avatarGregory Greenman <gregory.greenman@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent f6f046f0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -912,7 +912,9 @@ int iwl_mvm_send_lq_cmd(struct iwl_mvm *mvm, struct iwl_lq_cmd *lq, bool init)
		.data = { lq, },
	};

	if (WARN_ON(lq->sta_id == IWL_MVM_INVALID_STA))
	if (WARN_ON(lq->sta_id == IWL_MVM_INVALID_STA ||
		    fw_has_capa(&mvm->fw->ucode_capa,
				IWL_UCODE_TLV_CAPA_TLC_OFFLOAD)))
		return -EINVAL;

	return iwl_mvm_send_cmd(mvm, &cmd);