Returning WIFI_DIRECT_ERROR_CONNECTION_TIME_OUT when session timeout occurs 35/57035/2
authorNishant Chaprana <n.chaprana@samsung.com>
Thu, 14 Jan 2016 14:00:27 +0000 (19:30 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Mon, 18 Jan 2016 08:36:19 +0000 (14:06 +0530)
Change-Id: I95c7b8ab0b1864cf659e5b595b435bbe03daa991
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/wifi-direct-manager.spec
src/wifi-direct-session.c

index ed2e925..142374f 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          wifi-direct-manager
 Summary:       Wi-Fi Direct manger
-Version:       1.2.116
+Version:       1.2.117
 Release:       1
 Group:      Network & Connectivity/Wireless
 License:    Apache-2.0
index 0e3c309..9149a1e 100644 (file)
@@ -64,7 +64,7 @@ static gboolean _session_timeout_cb(gpointer *user_data)
 
        memset(&noti, 0x0, sizeof(wifi_direct_client_noti_s));
        noti.event = WIFI_DIRECT_CLI_EVENT_CONNECTION_RSP;
-       noti.error = WIFI_DIRECT_ERROR_CONNECTION_CANCELED;
+       noti.error = WIFI_DIRECT_ERROR_CONNECTION_TIME_OUT;
        if(peer_addr != NULL)
                g_snprintf(noti.param1, MACSTR_LEN, MACSTR, MAC2STR(peer_addr));
        wfd_client_send_event(manager, &noti);
@@ -124,8 +124,8 @@ int wfd_session_timer(wfd_session_s *session, int start)
                        return -1;
                }
                session->timer = g_timeout_add(120000,
-                                                       (GSourceFunc) _session_timeout_cb,
-                                                       session);
+                                               (GSourceFunc) _session_timeout_cb,
+                                               NULL);
                WDS_LOGD("Session timer started");
        } else {
                session->connecting_120 = 0;