Skip to content

Commit

Permalink
iwlwifi: mvm: remove warning on unknown scan complete
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Spinadel authored and Emmanuel Grumbach committed Nov 24, 2014
1 parent c8660dd commit 2992a32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/wireless/iwlwifi/mvm/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2992a32

Please sign in to comment.