Removed extra g_variant_get operation when GONegotiationRequest is received 94/59394/1
authorNishant Chaprana <n.chaprana@samsung.com>
Mon, 15 Feb 2016 08:51:44 +0000 (14:21 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Mon, 15 Feb 2016 08:51:44 +0000 (14:21 +0530)
Change-Id: I3c051faf180a17552d0ae187cfeee7c658e74d5c
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/wifi-direct-manager.spec
plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c

index c506704..1188e40 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          wifi-direct-manager
 Summary:       Wi-Fi Direct manger
-Version:       1.2.131
+Version:       1.2.132
 Release:       1
 Group:      Network & Connectivity/Wireless
 License:    Apache-2.0
index 50d4191..9d7dd02 100755 (executable)
@@ -1578,8 +1578,8 @@ static void _ws_process_go_neg_request(GDBusConnection *connection,
 
        g_variant_get(parameters, "(&oq)", &path, &dev_pwd_id);
        g_strlcpy(peer_path, path, DBUS_OBJECT_PATH_MAX);
-       WDP_LOGD("Retrive peer path [%s]", peer_path);
 
+       WDP_LOGD("Retrive peer path [%s]", peer_path);
        WDP_LOGD("Retrive dev_passwd_id [%d]", dev_pwd_id);
 
        if (dev_pwd_id == WS_DEV_PASSWD_ID_PUSH_BUTTON)
@@ -1591,10 +1591,6 @@ static void _ws_process_go_neg_request(GDBusConnection *connection,
        else
                event.wps_mode = WFD_OEM_WPS_MODE_NONE;
 
-       g_variant_get(parameters, "(&o)", &path);
-       g_strlcpy(peer_path, path, DBUS_OBJECT_PATH_MAX);
-       WDP_LOGD("Retrive Added path [%s]", peer_path);
-
        loc = strrchr(peer_path,'/');
        if(loc != NULL)
                __ws_mac_compact_to_normal(loc + 1, peer_dev);