[PATCH 14/17] P2P: when removing a P2P client start from current	interface
    Ilan Peer 
    ilan.peer at intel.com
       
    Tue May  5 05:37:02 EDT 2015
    
    
  
From: Ben Rosenfeld <ben.rosenfeld at intel.com>
p2p_remove_client is called on the wpa_s interface used to manage
the P2P Device operation. When removing a client, the iteration should
be done over the ssid list in the current wpa_s interface and not the
parent.
Signed-off-by: Ben Rosenfeld <ben.rosenfeld at intel.com>
---
 wpa_supplicant/p2p_supplicant.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index def959f..627b442 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -7308,7 +7308,7 @@ void wpas_p2p_remove_client(struct wpa_supplicant *wpa_s, const u8 *peer,
 	wpa_dbg(wpa_s, MSG_DEBUG, "P2P: Remove client " MACSTR, MAC2STR(peer));
 
 	/* Remove from any persistent group */
-	for (s = wpa_s->parent->conf->ssid; s; s = s->next) {
+	for (s = wpa_s->conf->ssid; s; s = s->next) {
 		if (s->disabled != 2 || s->mode != WPAS_MODE_P2P_GO)
 			continue;
 		if (!iface_addr)
-- 
1.9.1
    
    
More information about the HostAP
mailing list