From 228ec2290f7dcefc4883e10fc8e178b1494aa781 Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Tue, 2 Dec 2025 12:37:04 +0530 Subject: [PATCH] [noup] wnm: Add a workaround for a WFA-QT failure Due to high scan time in nRF devices (dual-band scan) if a fresh scan is triggered it leads to disassociation in WFA QT BTM test case. Add a workaround to establish pre-upmerge behaviour. Signed-off-by: Chaitanya Tata --- wpa_supplicant/wnm_sta.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c index 2d0bb9e1c6..a5ded42ec4 100644 --- a/wpa_supplicant/wnm_sta.c +++ b/wpa_supplicant/wnm_sta.c @@ -1607,7 +1607,9 @@ static void ieee802_11_rx_bss_trans_mgmt_req(struct wpa_supplicant *wpa_s, * timestamp nor will it expire old BSSs. */ wpa_supplicant_update_scan_results(wpa_s, NULL); - if (wnm_scan_process(wpa_s, true) > 0) + + if (wnm_scan_process(wpa_s, + IS_ENABLED(CONFIG_WIFI_NM_WPA_SUPPLICANT_BTM_PRE_SCAN_CHECK)) > 0) return; wpa_printf(MSG_DEBUG, "WNM: No valid match in previous scan results - try a new scan");