iwlwifi: mvm: remove warning on unknown scan complete
authorDavid Spinadel <david.spinadel@intel.com>
Mon, 10 Nov 2014 09:16:53 +0000 (11:16 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 24 Nov 2014 06:30:13 +0000 (08:30 +0200)
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

index b6719b64ff6db1447cfc4d412d10425fc0e31635..e5294d01181e404c44d78190df5ae869d8c0cd21 100644 (file)
@@ -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,