]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OCV: Fix OCV-FAILURE event address for FT Reassociation Response frame
authorJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 21:27:13 +0000 (23:27 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 21:50:50 +0000 (23:50 +0200)
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 <j@w1.fi>
src/rsn_supp/wpa_ft.c

index c26f1a5cd291b82e7ec783799d5a3e6572db6194..fce6e77e7fb915134539dcf9918812a53fcba096 100644 (file)
@@ -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;
                }
        }