Skip to content

Commit 7d10f6b

Browse files
committed
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 <[email protected]>
1 parent 7947d3e commit 7d10f6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

net/mac80211/scan.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,11 @@ static void __ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted)
362362
if (rc == 0)
363363
return;
364364

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

371372
kfree(local->hw_scan_req);

0 commit comments

Comments
 (0)