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
Unknown Object (File)
Nov 20 2024, 8:59 AM
Unknown Object (File)
Nov 17 2024, 1:44 PM
Unknown Object (File)
Nov 11 2024, 11:11 AM
Unknown Object (File)
Oct 3 2024, 1:07 PM
Unknown Object (File)
Sep 27 2024, 2:48 PM
Unknown Object (File)
Sep 24 2024, 10:18 PM
Unknown Object (File)
Sep 24 2024, 8:33 PM
Unknown Object (File)
Sep 20 2024, 12:55 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