P2P: Use the P2P Device interface in wpas_p2p_fallback_to_go_neg()
authorIlan Peer <ilan.peer@intel.com>
Wed, 17 Jun 2015 13:24:54 +0000 (16:24 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 19 Jun 2015 08:07:50 +0000 (11:07 +0300)
Previously the wpa_s->parent interface was used, which is not
necessarily the P2P Device management interface.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/p2p_supplicant.c

index 730d793..7bb09b3 100644 (file)
@@ -7111,7 +7111,7 @@ static int wpas_p2p_fallback_to_go_neg(struct wpa_supplicant *wpa_s,
 
        if (wpa_s->global->p2p_group_formation)
                group = wpa_s->global->p2p_group_formation;
-       wpa_s = wpa_s->parent;
+       wpa_s = wpa_s->global->p2p_init_wpa_s;
        offchannel_send_action_done(wpa_s);
        if (group_added)
                ret = wpas_p2p_group_delete(group, P2P_GROUP_REMOVAL_SILENT);