[PATCH 5/9] WNM: Stop scan handling after BTM failure

Benjamin Berg benjamin at sipsolutions.net
Fri Jul 18 04:01:01 PDT 2025


From: Benjamin Berg <benjamin.berg at intel.com>

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 at intel.com>
Reviewed-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
 wpa_supplicant/wnm_sta.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c
index 1aa2695bb3..1ca46d3e83 100644
--- a/wpa_supplicant/wnm_sta.c
+++ b/wpa_supplicant/wnm_sta.c
@@ -1141,7 +1141,7 @@ send_bss_resp_fail:
 
 	wnm_btm_reset(wpa_s);
 
-	return 0;
+	return 1;
 }
 
 
-- 
2.50.0




More information about the Hostap mailing list