Commit 7d10f6b1 authored by Johannes Berg's avatar Johannes Berg

mac80211: report failure to start (partial) scan as scan abort

Rather than reporting the scan as having completed, report it as
being aborted.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 7947d3e0
...@@ -362,10 +362,11 @@ static void __ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted) ...@@ -362,10 +362,11 @@ static void __ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted)
if (rc == 0) if (rc == 0)
return; return;
/* HW scan failed and is going to be reported as done, so clear /* HW scan failed and is going to be reported as aborted,
* old scan info. * so clear old scan info.
*/ */
memset(&local->scan_info, 0, sizeof(local->scan_info)); memset(&local->scan_info, 0, sizeof(local->scan_info));
aborted = true;
} }
kfree(local->hw_scan_req); kfree(local->hw_scan_req);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment