Skip to content

Commit

Permalink
mac80211: report failure to start (partial) scan as scan abort
Browse files Browse the repository at this point in the history
Rather than reporting the scan as having completed, report it as
being aborted.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Jul 6, 2016
1 parent 7947d3e commit 7d10f6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions net/mac80211/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,11 @@ static void __ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted)
if (rc == 0)
return;

/* HW scan failed and is going to be reported as done, so clear
* old scan info.
/* HW scan failed and is going to be reported as aborted,
* so clear old scan info.
*/
memset(&local->scan_info, 0, sizeof(local->scan_info));
aborted = true;
}

kfree(local->hw_scan_req);
Expand Down

0 comments on commit 7d10f6b

Please sign in to comment.