From: DoHyun Pyun Date: Wed, 30 Mar 2016 14:02:55 +0000 (+0900) Subject: Fix Web TC blocking issues X-Git-Tag: accepted/tizen/common/20160406.145347^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F29%2F64229%2F1;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Fix Web TC blocking issues After modifying bt-service's permission, sometimes don't recieve the event in application side. To resolve the issue, temperary send broadcast events. Before finding the root cause with dbus team. Change-Id: I688593aae3897255560b324af1902e30b089feed Signed-off-by: DoHyun Pyun --- diff --git a/bt-service/bt-service-adapter-le.c b/bt-service/bt-service-adapter-le.c index 070e3f6..02ad31b 100755 --- a/bt-service/bt-service-adapter-le.c +++ b/bt-service/bt-service-adapter-le.c @@ -153,8 +153,12 @@ static void __bt_send_foreach_event(gpointer data, gpointer user_data) void _bt_send_char_value_changed_event(void *param) { +#if 0 g_slist_foreach(gatt_client_senders, __bt_send_foreach_event, (gpointer)param); +#else + _bt_send_event(BT_DEVICE_EVENT, BLUETOOTH_EVENT_GATT_CHAR_VAL_CHANGED, param); +#endif } void __bt_free_le_adv_slot(void) @@ -1815,8 +1819,12 @@ void _bt_send_scan_result_event(const bt_remote_le_dev_info_t *le_dev_info, scan_data_len, scan_data_param); +#if 0 _bt_send_event_to_dest(scanner->sender, BT_LE_ADAPTER_EVENT, BLUETOOTH_EVENT_REMOTE_LE_DEVICE_FOUND, param); +#else + _bt_send_event(BT_LE_ADAPTER_EVENT, BLUETOOTH_EVENT_REMOTE_LE_DEVICE_FOUND, param); +#endif } } diff --git a/bt-service/bt-service-event-receiver.c b/bt-service/bt-service-event-receiver.c index de50bc7..1cd92d2 100755 --- a/bt-service/bt-service-event-receiver.c +++ b/bt-service/bt-service-event-receiver.c @@ -482,9 +482,14 @@ void _bt_handle_adapter_event(GVariant *msg, const char *member) event = BLUETOOTH_EVENT_ADVERTISING_STOPPED; param = g_variant_new("(ii)", result, adv_handle); + +#if 0 _bt_send_event_to_dest(sender, BT_ADAPTER_EVENT, event, param); +#else + _bt_send_event(BT_ADAPTER_EVENT, event, param); +#endif if (event == BLUETOOTH_EVENT_ADVERTISING_STOPPED) _bt_unregister_adv_slot_owner(slot_id);