HomeFreeBSD

LinuxKPI: 802.11: use an sx lock to protect the list of vifs

Description

LinuxKPI: 802.11: use an sx lock to protect the list of vifs

Use an sx lock to protect the list of vifs. We could use the
linux mutex compat for this but our current implementation may
re-acquire the lock recursively so allow this. The change is
mainly motivated by the fact that some callers may sleep in the
interator function called. Recursiveness is needed because we
see find_sta_by_ifaddr() being called from an iterator function
from iterate_interfaces().

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Details

Provenance
bzAuthored on Apr 15 2022, 2:22 PM
Parents
rG383b3e8f509f: LinuxKPI: 802.11: start adding rate control to ieee80211_tx_status()
Branches
Unknown
Tags
Unknown