mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
wifi: nl80211: probe peers without wiphy mutex
None of the drivers implementing probe_peer (mac80211, wil6210, nxpwifi) need the wiphy mutex for it, so we can just not take it. Document that as well. Link: https://patch.msgid.link/20261009201417.75233ff945c8.I2f462bfffa96feb8dcc4386bc35ebc25d877a92f@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
223a1e289b
commit
062de592d0
|
|
@ -5149,7 +5149,10 @@ struct mgmt_frame_regs {
|
|||
*
|
||||
* @probe_peer: probe a connected peer (AP: STA MAC required; STA: no MAC),
|
||||
* must use the @cookie as provided which is later passed to
|
||||
* cfg80211_probe_status().
|
||||
* cfg80211_probe_status(). Called without the wiphy mutex, so the
|
||||
* interface type may have changed/be changing and the MAC may be
|
||||
* %NULL even in AP mode (if runtime type changes are supported),
|
||||
* drivers must check for that.
|
||||
*
|
||||
* @set_noack_map: Set the NoAck Map for the TIDs.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -20835,7 +20835,8 @@ static const struct genl_small_ops nl80211_small_ops[] = {
|
|||
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
|
||||
.doit = nl80211_probe_peer,
|
||||
.flags = GENL_UNS_ADMIN_PERM,
|
||||
.internal_flags = IFLAGS(NL80211_FLAG_NEED_NETDEV_UP),
|
||||
.internal_flags = IFLAGS(NL80211_FLAG_NEED_NETDEV_UP |
|
||||
NL80211_FLAG_NO_WIPHY_MTX),
|
||||
},
|
||||
{
|
||||
.cmd = NL80211_CMD_REGISTER_BEACONS,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user