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: bbd3178af4
("MSCS: Add support to process MSCS Response frames")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b8673baeab
commit
354f87e2e3
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ void wpas_handle_robust_av_recv_action(struct wpa_supplicant *wpa_s,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_code = *buf;
|
status_code = WPA_GET_LE16(buf);
|
||||||
wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_MSCS_RESULT "bssid=" MACSTR
|
wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_MSCS_RESULT "bssid=" MACSTR
|
||||||
" status_code=%u", MAC2STR(src), status_code);
|
" status_code=%u", MAC2STR(src), status_code);
|
||||||
wpa_s->mscs_setup_done = status_code == WLAN_STATUS_SUCCESS;
|
wpa_s->mscs_setup_done = status_code == WLAN_STATUS_SUCCESS;
|
||||||
|
|
Loading…
Reference in a new issue