]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Pass "global" events to all interfaces
authorCermak Dominik <Dominik.Cermak@joynext.com>
Thu, 29 Aug 2024 08:01:21 +0000 (08:01 +0000)
committerJouni Malinen <j@w1.fi>
Sun, 1 Sep 2024 12:39:36 +0000 (15:39 +0300)
commitde40e08f70c8f3c08c7fb8d4691de3e3988232ea
tree65f611b5068729d9e069f0cde6805c8cc5fea179
parentc3ee46bcbe51cde235f8a412c7b963fbed209d2b
nl80211: Pass "global" events to all interfaces

We got connection failures because of outdated channel information.
That's because the NL80211_CMD_REG_CHANGE event is important for all
interfaces.

Commit f13683720239 ("nl80211: Pass wiphy events to all affected
interfaces") skips the early termination for events directed to a wiphy,
but that doesn't cover the regulatory change event because it doesn't
have a wiphy set either. Therefore the early termination still kicks in
and from three interfaces, only one got the updated channel list.

Fix this by changing the early termination logic to only apply to events
directed either to a specific interface index for wdev.

Signed-off-by: Dominik Cermak <dominik.cermak@joynext.com>
src/drivers/driver_nl80211_event.c