From: Benjamin Berg Date: Fri, 18 Jul 2025 11:01:01 +0000 (+0200) Subject: WNM: Stop scan handling after BTM failure X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e663cc7982d3ca5cf3fe9ce88b58890d59b54e1;p=thirdparty%2Fhostap.git WNM: Stop scan handling after BTM failure 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 Reviewed-by: Andrei Otcheretianski --- diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c index e9bd6d17e..81fce05d3 100644 --- a/wpa_supplicant/wnm_sta.c +++ b/wpa_supplicant/wnm_sta.c @@ -1137,7 +1137,7 @@ send_bss_resp_fail: wnm_btm_reset(wpa_s); - return 0; + return 1; }