]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Fix scan request and its related events handling with MLO
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Fri, 21 Jun 2024 05:34:38 +0000 (11:04 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 5 Aug 2024 17:34:12 +0000 (20:34 +0300)
commitfd55dfe16e7a08c419e9430a67f5c121da6bb0e1
tree5cc9e12c53953d6a9f936c50c38443b0e244b698
parent23456e480e09a5a8a35f2d618fc335c3b4d85bed
nl80211: Fix scan request and its related events handling with MLO

Currently, whenever a scan is started, it uses drv's first BSS only
whether it is AP or STA interface. However, with AP MLD related changes,
the same drv could be used by other BSSs as well which needs scanning.
Hence, the current logic will not work since scan needs to be handled on
a non-first BSS as well.

Move the logic of always using drv's first BSS during scan events to
using BSS on which the event arrived.

Also, for AP MLD operation, even though the BSS is same, the link BSS
also needs to be identified. Hence, add a back pointer in the BSS struct
which would be used to point to the link BSS which requested the scan on
that BSS. This will help in routing the scan events to an appropriate
BSS ctx.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
src/drivers/driver_nl80211.c
src/drivers/driver_nl80211.h
src/drivers/driver_nl80211_event.c
src/drivers/driver_nl80211_scan.c