[PATCH] ctrl_iface: propagate wpas_p2p_find's return value

Eliad Peller eliad at wizery.com
Thu Jan 13 11:27:32 EST 2011


Signed-off-by: Eliad Peller <eliad at wizery.com>
---
 wpa_supplicant/ctrl_iface.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 0f98d68..38aadd5 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -1989,8 +1989,7 @@ static int p2p_ctrl_find(struct wpa_supplicant *wpa_s, char *cmd)
 	else if (os_strstr(cmd, "type=progressive"))
 		type = P2P_FIND_PROGRESSIVE;
 
-	wpas_p2p_find(wpa_s, timeout, type);
-	return 0;
+	return wpas_p2p_find(wpa_s, timeout, type);
 }
 
 
-- 
1.7.0.4



More information about the HostAP mailing list