]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WNM: Stop scan handling after BTM failure
authorBenjamin Berg <benjamin.berg@intel.com>
Fri, 18 Jul 2025 11:01:01 +0000 (13:01 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 3 Oct 2025 10:49:25 +0000 (13:49 +0300)
If after our scan, the BSS Transition could not be performed, then still
return success so that the event handling code does not trigger a normal
BSS selection which could try to roam to a forbidden candidate.

Fixes: e508c070c40e ("WNM: Keep BTM information until connection completes")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Reviewed-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
wpa_supplicant/wnm_sta.c

index e9bd6d17eba476223a346710f43765c3c5008f78..81fce05d3a431c8f188c32d77ec21128426997df 100644 (file)
@@ -1137,7 +1137,7 @@ send_bss_resp_fail:
 
        wnm_btm_reset(wpa_s);
 
-       return 0;
+       return 1;
 }