From b5e3d92ee40e936718065d3110225989166cecb3 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 28 Feb 2021 23:27:13 +0200 Subject: [PATCH] OCV: Fix OCV-FAILURE event address for FT Reassociation Response frame sm->bssid is still the BSSID of the previous AP at this point in the FT protocol, so need to show the target AP's BSSID instead in the failure message. Fixes: 8c1f61e820d6 ("OCV: Report OCI validation failures with OCV-FAILURE messages (STA)") Signed-off-by: Jouni Malinen --- src/rsn_supp/wpa_ft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rsn_supp/wpa_ft.c b/src/rsn_supp/wpa_ft.c index c26f1a5cd..fce6e77e7 100644 --- a/src/rsn_supp/wpa_ft.c +++ b/src/rsn_supp/wpa_ft.c @@ -1203,7 +1203,7 @@ int wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, ci.seg1_idx) != OCI_SUCCESS) { wpa_msg(sm->ctx->msg_ctx, MSG_INFO, OCV_FAILURE "addr=" MACSTR " frame=ft-assoc error=%s", - MAC2STR(sm->bssid), ocv_errorstr); + MAC2STR(src_addr), ocv_errorstr); return -1; } }