From: Jouni Malinen Date: Fri, 15 Jul 2011 10:57:31 +0000 (+0300) Subject: P2P: Remove dead code from wpas_p2p_connect() X-Git-Tag: hostap-1-bp~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab1dee81a2e5e8377546a7b837413d8b822a1da5;p=thirdparty%2Fhostap.git P2P: Remove dead code from wpas_p2p_connect() 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. --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index c34a28cb7..28dbbe686 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -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 "