Page MenuHomeFreeBSD

net80211: scan/internal: change boolean argument from int to bool
ClosedPublic

Authored by bz on Jun 30 2024, 9:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 1:04 PM
Unknown Object (File)
Sat, Oct 19, 11:33 AM
Unknown Object (File)
Sat, Oct 19, 11:33 AM
Unknown Object (File)
Sat, Oct 19, 11:33 AM
Unknown Object (File)
Sat, Oct 19, 11:17 AM
Unknown Object (File)
Oct 1 2024, 6:23 PM
Unknown Object (File)
Sep 30 2024, 10:03 PM
Unknown Object (File)
Sep 28 2024, 3:57 PM

Details

Summary

ieee80211_probe_curchan() passed a "force" argument which is bool.
Make it such. Adjust the (*sc_scan_probe_curchan)() KPI to bool
as well. This is all a big NOP as the only implementor of this
function, ieee80211_swscan_probe_curchan(), does not use the argument
at all.

I came across this when pondering a different scan implementation.
Rather than dropping it (change or the argument from the function),
push the cleanup out given it is purely net80211 internal code
(the argument may have reason for existance in the future).

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 58432
Build 55320: arc lint + arc unit