]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Ignore p2p_no_group_iface when driver advertizes P2P_DEVICE support
authorArend van Spriel <arend@broadcom.com>
Sun, 30 Jun 2013 07:48:44 +0000 (10:48 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 30 Jun 2013 07:50:13 +0000 (10:50 +0300)
Setting p2p_no_group_iface means 'use P2P management interface as P2P
connection interface' because it attempts to change the interface type.
The P2P_DEVICE is a dedicated interface and can not be changed. As such
ignore the configuration option.

Signed-hostap: Arend van Spriel <arend@broadcom.com>

wpa_supplicant/p2p_supplicant.c

index e5aeef9ac10fe6bc9ec961fee6c6fa4334676e47..b0ebaaeb1e03233db33003b35dc771acf91b063c 100644 (file)
@@ -3225,7 +3225,8 @@ void wpas_p2p_deinit_global(struct wpa_global *global)
 
 static int wpas_p2p_create_iface(struct wpa_supplicant *wpa_s)
 {
-       if (wpa_s->conf->p2p_no_group_iface)
+       if (!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE) &&
+           wpa_s->conf->p2p_no_group_iface)
                return 0; /* separate interface disabled per configuration */
        if (wpa_s->drv_flags &
            (WPA_DRIVER_FLAGS_P2P_DEDICATED_INTERFACE |