From 354f87e2e38cd1c4f07142b7fb21bab726ced943 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 23 Mar 2021 00:30:49 +0200 Subject: [PATCH] MSCS: Fix MSCS Response frame Status field parsing This is a 2 octet field, so need to use WPA_GET_LE16() here instead of using only the first octet of the value. Fixes: bbd3178af45b ("MSCS: Add support to process MSCS Response frames") Signed-off-by: Jouni Malinen --- wpa_supplicant/robust_av.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/robust_av.c b/wpa_supplicant/robust_av.c index f6da56eed..39d282f08 100644 --- a/wpa_supplicant/robust_av.c +++ b/wpa_supplicant/robust_av.c @@ -118,7 +118,7 @@ void wpas_handle_robust_av_recv_action(struct wpa_supplicant *wpa_s, return; } - status_code = *buf; + status_code = WPA_GET_LE16(buf); wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_MSCS_RESULT "bssid=" MACSTR " status_code=%u", MAC2STR(src), status_code); wpa_s->mscs_setup_done = status_code == WLAN_STATUS_SUCCESS;