aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-05-08 14:33:14 (GMT)
committerJouni Malinen <j@w1.fi>2012-05-08 14:38:57 (GMT)
commit6f251b6bb504176bc9086cde3a1bbe744d15bce8 (patch)
tree2d2cf296a1d24febfd15e5fed68395915de3c79f /wpa_supplicant/ap.c
parentaa9bb7644b0f7acbc9403189f0c47c17079205bc (diff)
downloadhostap-6f251b6bb504176bc9086cde3a1bbe744d15bce8.zip
hostap-6f251b6bb504176bc9086cde3a1bbe744d15bce8.tar.gz
hostap-6f251b6bb504176bc9086cde3a1bbe744d15bce8.tar.bz2
P2P: Store SSID of the group in p2p_group data
This can be used with P2P management operations that need to verify whether the local device is operating a specific group based on P2P Group ID attribute from a peer. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 21aa7f6..d531583 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -540,9 +540,8 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
hapd_iface->bss[i]->sta_authorized_cb_ctx = wpa_s;
#ifdef CONFIG_P2P
hapd_iface->bss[i]->p2p = wpa_s->global->p2p;
- hapd_iface->bss[i]->p2p_group = wpas_p2p_group_init(
- wpa_s, ssid->p2p_persistent_group,
- ssid->mode == WPAS_MODE_P2P_GROUP_FORMATION);
+ hapd_iface->bss[i]->p2p_group = wpas_p2p_group_init(wpa_s,
+ ssid);
#endif /* CONFIG_P2P */
hapd_iface->bss[i]->setup_complete_cb = wpas_ap_configured_cb;
hapd_iface->bss[i]->setup_complete_cb_ctx = wpa_s;