From: Jouni Malinen Date: Sun, 13 Nov 2011 20:33:32 +0000 (+0200) Subject: P2P: Verify that assoc req IEs are available for group update X-Git-Tag: aosp-jb-start~343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99c01af9aa1db014bb1d7b552caed6897295e51a;p=thirdparty%2Fhostap.git P2P: Verify that assoc req IEs are available for group update Do not call p2p_group_notif_assoc() if the driver did not return IEs from the association request. Signed-hostap: Jouni Malinen --- diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index 142ceb7cd..3b6c57c45 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -203,8 +203,10 @@ skip_wpa_check: ieee802_1x_notify_port_enabled(sta->eapol_sm, 1); #ifdef CONFIG_P2P - p2p_group_notif_assoc(hapd->p2p_group, sta->addr, - req_ies, req_ies_len); + if (req_ies) { + p2p_group_notif_assoc(hapd->p2p_group, sta->addr, + req_ies, req_ies_len); + } #endif /* CONFIG_P2P */ return 0;