Fix glib error 43/235343/1
authorinjun.yang <injun.yang@samsung.com>
Tue, 2 Jun 2020 06:29:32 +0000 (15:29 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 4 Jun 2020 04:18:53 +0000 (13:18 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] gvairant type is wrong
[Cause & Measure] change the type
[Checking Method]

[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I10960fa5e65b812318282e67f1f4ddf8ba488183
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-oal/bluez_hal/src/bt-hal-gatt-server.c

index b46082c..2345791 100644 (file)
@@ -1408,14 +1408,14 @@ static void __bt_gatt_char_method_call(GDBusConnection *connection,
                GVariant *value = NULL;
                while (g_variant_iter_loop(iter, "{sv}", &key, &value)) {
                                if (g_strcmp0(key, "MTU") == 0)
-                                       g_variant_get(value, "i", &mtu);
+                                       g_variant_get(value, "q", &mtu);
                                else if (g_strcmp0(key, "link") == 0)
                                        g_variant_get(value, "s", &link);
                                else if (g_strcmp0(key, "device") == 0)
                                        g_variant_get(value, "o", &dev_path);
                }
 
-               DBG(" path  %s LINK = %s, MTU = %u", addr, link, mtu);
+               DBG(" path  %s LINK = %s, MTU = %u", dev_path, link, mtu);
 
                svc_info = __bt_gatt_find_gatt_service_from_char(object_path, &char_hdl);