aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/p2p_supplicant.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-05-14 16:39:10 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-14 16:43:30 (GMT)
commitad6cee3fa04103e4b7155efc0da593d155e05c34 (patch)
tree0ba2eff1bfe22cb2eb1e1f249eb02f8dfa0f0621 /wpa_supplicant/p2p_supplicant.c
parent50d06776c6c638121e9630ef9cde7a477b04563d (diff)
downloadhostap-ad6cee3fa04103e4b7155efc0da593d155e05c34.zip
hostap-ad6cee3fa04103e4b7155efc0da593d155e05c34.tar.gz
hostap-ad6cee3fa04103e4b7155efc0da593d155e05c34.tar.bz2
P2P: Do not enable P2P group processing for non-P2P AP mode
wpa_supplicant was starting P2P group processing for all AP mode interfaces in CONFIG_P2P=y builds. This is unnecessary and such operations should be enabled only for actual GO interfaces. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/p2p_supplicant.c')
-rw-r--r--wpa_supplicant/p2p_supplicant.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index b1f3344..a9443f3 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -6318,7 +6318,8 @@ struct p2p_group * wpas_p2p_group_init(struct wpa_supplicant *wpa_s,
struct p2p_group *group;
struct p2p_group_config *cfg;
- if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL)
+ if (wpa_s->global->p2p_disabled || wpa_s->global->p2p == NULL ||
+ !ssid->p2p_group)
return NULL;
cfg = os_zalloc(sizeof(*cfg));