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
F96411290: D38661.diff
Tue, Sep 24, 8:33 PM
Unknown Object (File)
Fri, Sep 20, 12:55 AM
Unknown Object (File)
Wed, Sep 18, 2:29 PM
Unknown Object (File)
Tue, Sep 10, 8:23 AM
Unknown Object (File)
Sun, Sep 8, 6:54 PM
Unknown Object (File)
Sun, Sep 8, 2:56 AM
Unknown Object (File)
Thu, Sep 5, 1:19 PM
Unknown Object (File)
Sun, Sep 1, 12:58 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 Passed
Unit
No Test Coverage
Build Status
Buildable 49872
Build 46763: arc lint + arc unit

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