P2P: Add group notification from (re)association request
authorJouni Malinen <jouni.malinen@atheros.com>
Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 9 Sep 2010 14:17:18 +0000 (07:17 -0700)
src/ap/drv_callbacks.c

index 9db84d8..a6c546c 100644 (file)
@@ -20,6 +20,7 @@
 #include "common/ieee802_11_defs.h"
 #include "common/ieee802_11_common.h"
 #include "common/wpa_ctrl.h"
+#include "p2p/p2p.h"
 #include "wps/wps.h"
 #include "hostapd.h"
 #include "ieee802_11.h"
@@ -181,6 +182,13 @@ skip_wpa_check:
 
        ieee802_1x_notify_port_enabled(sta->eapol_sm, 1);
 
+#ifdef CONFIG_P2P
+       if (elems.p2p) {
+               p2p_group_notif_assoc(hapd->p2p_group, sta->addr,
+                                     all_ies, all_ies_len);
+       }
+#endif /* CONFIG_P2P */
+
        return 0;
 }