]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Remove dead code from wpas_p2p_connect()
authorJouni Malinen <j@w1.fi>
Fri, 15 Jul 2011 10:57:31 +0000 (13:57 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 15 Jul 2011 10:57:31 +0000 (13:57 +0300)
The case of joining a running group is handled before this location
and the P2P client iftype is assigned at a callback function for that
case.

wpa_supplicant/p2p_supplicant.c

index c34a28cb7fc234a4e52806d9ea6d6dddb8ac6600..28dbbe686283a164bb8bc8a2042c2b06b7e6116a 100644 (file)
@@ -3008,9 +3008,7 @@ int wpas_p2p_connect(struct wpa_supplicant *wpa_s, const u8 *peer_addr,
 
        /* Prepare to add a new interface for the group */
        iftype = WPA_IF_P2P_GROUP;
-       if (join)
-               iftype = WPA_IF_P2P_CLIENT;
-       else if (go_intent == 15)
+       if (go_intent == 15)
                iftype = WPA_IF_P2P_GO;
        if (wpas_p2p_add_group_interface(wpa_s, iftype) < 0) {
                wpa_printf(MSG_ERROR, "P2P: Failed to allocate a new "