[wfd-manager]: Fix: Syn-up issue with supplicant 03/69303/2
authorManeesh Jain <maneesh.jain@samsung.com>
Thu, 12 May 2016 12:43:52 +0000 (18:13 +0530)
committerManeesh Jain <maneesh.jain@samsung.com>
Fri, 13 May 2016 03:27:14 +0000 (20:27 -0700)
Description: Call "Flush" method after "RejectPeer" method call
             to remove syncup issue in supplicant

Change-Id: Ibbfe0c626116146b6e603bd4d598e4dfcb9366b8
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c

index d4be700..f429206 100755 (executable)
@@ -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(&params, 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(&params, 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;
 }