diff mbox

[34/75] iwlwifi: mvm: remove warning on unknown scan complete

Message ID 1416839691-28533-34-git-send-email-egrumbach@gmail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Emmanuel Grumbach Nov. 24, 2014, 2:34 p.m. UTC
From: David Spinadel <david.spinadel@intel.com>

Remove warning on scan complete with unknown ID, since this
scan could be already cleared in abort flow.

Signed-off-by: David Spinadel <david.spinadel@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
 drivers/net/wireless/iwlwifi/mvm/scan.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/net/wireless/iwlwifi/mvm/scan.c b/drivers/net/wireless/iwlwifi/mvm/scan.c
index b6719b6..e5294d0 100644
--- a/drivers/net/wireless/iwlwifi/mvm/scan.c
+++ b/drivers/net/wireless/iwlwifi/mvm/scan.c
@@ -1951,8 +1951,10 @@  int iwl_mvm_rx_umac_scan_complete_notif(struct iwl_mvm *mvm,
 	bool sched = !!(uid & IWL_UMAC_SCAN_UID_SCHED_SCAN);
 	int uid_idx = iwl_mvm_find_scan_uid(mvm, uid);
 
-	if (WARN(uid_idx >= IWL_MVM_MAX_SIMULTANEOUS_SCANS,
-		 "Scan notification for uknown scan ID\n"))
+	/*
+	 * Scan uid may be set to zero in case of scan abort request from above.
+	 */
+	if (uid_idx >= IWL_MVM_MAX_SIMULTANEOUS_SCANS)
 		return 0;
 
 	IWL_DEBUG_SCAN(mvm,