Fix : Bonding complete event is sent twice. 04/207604/1
authorinjun.yang <injun.yang@samsung.com>
Tue, 7 May 2019 04:32:44 +0000 (13:32 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 10 Jun 2019 02:42:58 +0000 (11:42 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

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

[Problem] When DUT request LE pairing, bonding complete event generated twice.
[Cause & Measure] "Paired" signal emmited twice. Just send one signal
[Checking Method] Request LE pairing

[Team] IoT Hub
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

* bluetooth-frwk changes required
a29ceb772571647ec4c4b30c85f1abb034b84fed

Change-Id: I8cfa84f1d5c2ccbdbfac633cc5ab3d7e33994690
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/device.c

index 7bca3e6..5c8db72 100644 (file)
@@ -8125,7 +8125,10 @@ void device_set_paired(struct btd_device *dev, uint8_t bdaddr_type)
                return;
        }
 
-       g_dbus_emit_property_changed(dbus_conn, dev->path,
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+       if (dev->bonding == NULL)
+#endif
+               g_dbus_emit_property_changed(dbus_conn, dev->path,
                                                DEVICE_INTERFACE, "Paired");
 }