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

Commit 1c4e15a2 authored by Max Stepanov's avatar Max Stepanov Committed by Emmanuel Grumbach
Browse files

iwlwifi: mvm: add debug print if scan config is ignored



Print a debug message in iwl_mvm_config_scan() if a scan configuration
data is decided not to be sent to FW.

Signed-off-by: default avatarMax Stepanov <Max.Stepanov@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent 0c1c6e37
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -930,8 +930,11 @@ int iwl_mvm_config_scan(struct iwl_mvm *mvm)
	if (WARN_ON(num_channels > mvm->fw->ucode_capa.n_scan_channels))
		return -ENOBUFS;

	if (type == mvm->scan_type)
	if (type == mvm->scan_type) {
		IWL_DEBUG_SCAN(mvm,
			       "Ignoring UMAC scan config of the same type\n");
		return 0;
	}

	cmd_size = sizeof(*scan_config) + mvm->fw->ucode_capa.n_scan_channels;