]> git.ipfire.org Git - thirdparty/hostap.git/commit
WNM: Follow BTM procedure if the last link is dropped
authorBenjamin Berg <benjamin.berg@intel.com>
Tue, 20 Feb 2024 13:18:26 +0000 (14:18 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 2 Mar 2024 18:52:17 +0000 (20:52 +0200)
commit17a2aa822c26b042b89491677b844730f29699dc
treeb0de4ae75fb271931157625405c54a0bb479f1fb
parent770f3cb30bd6fd6497ec38b6ee9aaab8229f10f4
WNM: Follow BTM procedure if the last link is dropped

If the last link is dropped, it makes sense to follow the BTM procedure.
However, in that case we need to prevent reconnection to this link
specifically, while if the AP MLD is terminating we need to forbid
connecting to the AP MLD.

As such, add a new variable to track the BSSID or AP MLD MAC address.
Which one it refers to depends on whether wnm_link_removal is set.

This also simplifies the check in wnm_is_bss_excluded() and untangles it
from wpa_s->current_bss.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
wpa_supplicant/wnm_sta.c
wpa_supplicant/wpa_supplicant_i.h