From 57c3a6683decac37a07dc31f737bc9070694a8e8 Mon Sep 17 00:00:00 2001 From: Maneesh Jain Date: Thu, 12 May 2016 18:13:52 +0530 Subject: [PATCH] [wfd-manager]: Fix: Syn-up issue with supplicant Description: Call "Flush" method after "RejectPeer" method call to remove syncup issue in supplicant Change-Id: Ibbfe0c626116146b6e603bd4d598e4dfcb9366b8 Signed-off-by: Maneesh Jain --- plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c b/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c index d4be700..f429206 100755 --- a/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c +++ b/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c @@ -1108,12 +1108,14 @@ static int _ws_flush() if (!g_pd) { WDP_LOGE("ws_dbus_plugin_data_s is not created yet"); + __WDP_LOG_FUNC_EXIT__; return -1; } g_dbus = g_pd->g_dbus; if (!g_dbus) { WDP_LOGE("DBus connection is NULL"); + __WDP_LOG_FUNC_EXIT__; return -1; } memset(¶ms, 0x0, sizeof(dbus_method_param_s)); @@ -3439,17 +3441,20 @@ int ws_reject_connection(unsigned char *peer_addr) if (!peer_addr) { WDP_LOGE("Invalid parameter"); + __WDP_LOG_FUNC_EXIT__; return -1; } if (!g_pd) { WDP_LOGE("ws_dbus_plugin_data_s is not created yet"); + __WDP_LOG_FUNC_EXIT__; return -1; } g_dbus = g_pd->g_dbus; if (!g_dbus) { WDP_LOGE("DBus connection is NULL"); + __WDP_LOG_FUNC_EXIT__; return -1; } memset(¶ms, 0x0, sizeof(dbus_method_param_s)); @@ -3473,6 +3478,7 @@ int ws_reject_connection(unsigned char *peer_addr) else WDP_LOGD("Succeeded to reject peer[" MACSTR "]", MAC2STR(peer_addr)); + _ws_flush(); __WDP_LOG_FUNC_EXIT__; return res; } -- 2.7.4