]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Pass wiphy events to all affected interfaces
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 28 Dec 2023 13:12:48 +0000 (15:12 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 14 Jan 2024 15:03:06 +0000 (17:03 +0200)
commitf136837202393a7e1f3182e9efdbf1aaa0c1a5c2
treef370efe5a459c2c1ce638d0c5f9e29ecf5b25bc2
parent44b233b6416d7500703bae5562c16241e1d6f35f
nl80211: Pass wiphy events to all affected interfaces

Previously, we would only pass the event to the first interface that
matches. However, one wiphy can have multiple interfaces and each one
needs to get the event delivered. Without this, it could e.g. happen
that a radar detection event is forwarded to p2p-dev-wlan0 and not to
the wlan0 interface which actually needs it.

As such, keep iterating if we are processing a wiphy match and send the
event to all affected BSSs.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
src/drivers/driver_nl80211_event.c