HomeFreeBSD

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

Description

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

ieee80211_probe_curchan() passes 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 the change remove the argument from the function,
and 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
Differential Revision: https://reviews.freebsd.org/D45816

(cherry picked from commit 9776aba34576596cbe49084457ee40730fec55a2)

Details

Provenance
bzAuthored on Jun 30 2024, 9:16 PM
Differential Revision
D45816: net80211: scan/internal: change boolean argument from int to bool
Parents
rGaf034dcbb242: LinuxKPI: 802.11 compile in debugging based on IEEE80211 debugging
Branches
Unknown
Tags
Unknown