Page MenuHomeFreeBSD

net80211: introduce two extra ieee80211_notify_scan_done()
ClosedPublic

Authored by bz on Feb 18 2023, 1:25 AM.
Tags
None
Referenced Files
F84700959: D38661.diff
Mon, May 27, 9:19 AM
Unknown Object (File)
Wed, May 15, 8:44 AM
Unknown Object (File)
Apr 19 2024, 3:26 PM
Unknown Object (File)
Jan 5 2024, 9:13 PM
Unknown Object (File)
Dec 23 2023, 6:32 AM
Unknown Object (File)
Dec 11 2023, 12:48 AM
Unknown Object (File)
Dec 7 2023, 9:29 AM
Unknown Object (File)
Nov 27 2023, 8:51 AM
Subscribers

Details

Summary

We have multiple problems with scanning currently, one being that
an initial scan restarts itself and we are unable to start another
scan. wpa_supplicant in that case never gets scan results.
Add two extra calls to ieee80211_notify_scan_done() at the end of scans
(before possible restarts). That will get wpa_supplicant to query
can results and possibly start associating to a BSSID and get us out
of scan. This is kind-of a bandaid but on short notice helps to improve
some situations.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Test Plan

This came out of a longer analysis of @enweiwu in D38508 and related revisions.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Feb 18 2023, 1:25 AM

I keep thinking that this is the two places when a scan finished and is started again without being stopped after all.

bz changed the visibility from "Public (No Login Required)" to "Subscribers".Feb 18 2023, 1:27 AM
bz changed the edit policy from "All Users" to "Subscribers".
bz changed the visibility from "Subscribers" to "Public (No Login Required)".Aug 21 2023, 9:40 PM
bz retitled this revision from net80211: add extra ieee80211_notify_scan_done() calls to net80211: introduce two extra ieee80211_notify_scan_done().Sep 21 2023, 11:55 AM
bz edited the summary of this revision. (Show Details)
bz edited the test plan for this revision. (Show Details)

The patch looks reasonable. I'll try to test tonight.

I didn't have any problems before but the added scan notify does wake up wpa_supplicant, producing more output.

This revision is now accepted and ready to land.Sep 21 2023, 2:17 PM