P2P: Allow P2P IE without Device Info in (Re)Assoc Req

This can happen, e.g., when a P2P client connects to a P2P group
using the infrastructure WLAN interface instead of P2P group
interface. In that case, the P2P client may behave as if the GO
would be a P2P Manager WLAN AP.
This commit is contained in:
Jouni Malinen 2010-08-01 16:47:38 -07:00 committed by Jouni Malinen
parent b6c79a998f
commit 5548ddc217
2 changed files with 16 additions and 2 deletions

View file

@ -781,8 +781,12 @@ static u16 check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta,
P2P_IE_VENDOR_TYPE);
if (p2p_group_notif_assoc(hapd->p2p_group, sta->addr,
ies, ies_len) < 0)
ies, ies_len) < 0) {
wpa_printf(MSG_DEBUG, "P2P: Invalid P2P IE in "
"(Re)Association Request frame from "
MACSTR, MAC2STR(sta->addr));
return WLAN_STATUS_UNSPECIFIED_FAILURE;
}
} else {
wpabuf_free(sta->p2p_ie);
sta->p2p_ie = NULL;