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>
This commit is contained in:
parent
50d06776c6
commit
ad6cee3fa0
1 changed files with 2 additions and 1 deletions
|
@ -6318,7 +6318,8 @@ struct p2p_group * wpas_p2p_group_init(struct wpa_supplicant *wpa_s,
|
||||||
struct p2p_group *group;
|
struct p2p_group *group;
|
||||||
struct p2p_group_config *cfg;
|
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;
|
return NULL;
|
||||||
|
|
||||||
cfg = os_zalloc(sizeof(*cfg));
|
cfg = os_zalloc(sizeof(*cfg));
|
||||||
|
|
Loading…
Reference in a new issue