mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 20:24:12 +08:00
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: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
7947d3e075
commit
7d10f6b179
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user