]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Fix simultaneous scanning failure in case of MLO
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Fri, 21 Jun 2024 05:34:39 +0000 (11:04 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 5 Aug 2024 17:34:12 +0000 (20:34 +0300)
commit666d695bbd0479e9853f9fb81a8202fcd6869ac8
treec48268496d08e634574d325d7950c20b1964dcc0
parentfd55dfe16e7a08c419e9430a67f5c121da6bb0e1
nl80211: Fix simultaneous scanning failure in case of MLO

Currently only one scan can be performed on per phy level at a time in
the driver. Due to this, if another scan request is sent via anoother
underlying phy, the kernel returns -EBUSY. This would result in hostapd
trying to set the interface into station mode if it was originally in AP
mode and retry sending a scan request. However, this behavior is
expected in case of multi link operation and hence there is no need to
switch the mode as such.

Hence, add logic to not change the NL mode if the kernel returns -EBUSY
during multi link AP operation. The caller can accordingly decide and,
if needed, it can re-schedule a scan request after some time.

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