[Adapt:BlueZHAL] Fix bt-service unexpected termination 48/98048/1
authorAtul Rai <a.rai@samsung.com>
Fri, 11 Nov 2016 09:25:46 +0000 (14:55 +0530)
committerAtul Rai <a.rai@samsung.com>
Fri, 11 Nov 2016 09:25:46 +0000 (14:55 +0530)
Change-Id: Ia2dc06d4c07c2b69ff20cca1235f65f56f55f58b
Signed-off-by: Atul Rai <a.rai@samsung.com>
bt-oal/bluez_hal/src/bt-hal-hdp-dbus-handler.c

index 2539108..15a8ca9 100644 (file)
@@ -415,6 +415,7 @@ static void __hdp_handle_connect(GVariant *parameters)
        }
 
        conn_info->fd = fd;
+       conn_info->obj_path = g_strdup(obj_channel_path);
        /* Send channel_connect callback with status: success */
        __hdp_send_conn_event(conn_info, BTHL_CONN_STATE_CONNECTED);
 
@@ -993,7 +994,8 @@ bt_status_t _bt_hal_dbus_handler_hdp_destroy_channel(int channel_id)
                return BT_STATUS_PARM_INVALID;
        }
 
-       DBG("Destroy channel with channel_id: %d, remote_addr: %s", channel_id, conn_info->address);
+       DBG("Destroy channel with channel_id: %d, remote_addr: %s, obj_path: %s",
+                       channel_id, conn_info->address, conn_info->obj_path);
 
        hdp_proxy = __get_health_device_proxy(conn_info->address);
        if (!hdp_proxy) {