From: Ilan Peer <ilan.peer@xxxxxxxxx> The extended request element is expected to also include the extended ID. Signed-off-by: Ilan Peer <ilan.peer@xxxxxxxxx> --- wpa_supplicant/rrm.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wpa_supplicant/rrm.c b/wpa_supplicant/rrm.c index 1aa87bb017..ac37c7db48 100644 --- a/wpa_supplicant/rrm.c +++ b/wpa_supplicant/rrm.c @@ -1117,6 +1117,17 @@ static int wpas_rm_handle_beacon_req_subelem(struct wpa_supplicant *wpa_s, return -1; } + if (sid == WLAN_BEACON_REQUEST_SUBELEM_EXT_REQUEST) { + if (slen < 2 || subelem[0] != WLAN_EID_EXTENSION) { + wpa_printf(MSG_DEBUG, + "Invalid extended request"); + return -1; + } + + subelem++; + slen--; + } + if ((sid == WLAN_BEACON_REQUEST_SUBELEM_REQUEST && data->eids) || (sid == WLAN_BEACON_REQUEST_SUBELEM_EXT_REQUEST && -- 2.43.0 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap