Add DA logic to fix le scan fail issue 05/307005/1 accepted/tizen/unified/20240308.173931 accepted/tizen/unified/x/20240311.095859
authorWootak Jung <wootak.jung@samsung.com>
Wed, 28 Feb 2024 02:30:20 +0000 (11:30 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Sun, 3 Mar 2024 23:35:32 +0000 (08:35 +0900)
Change-Id: Ibbc873d83e16fe85778e46290cec95f79dfa24f4
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-service/services/adapter/bt-service-core-adapter-le.c

index f00c305..0965029 100644 (file)
@@ -1106,6 +1106,13 @@ static void __bt_le_event_handler(int event_type, gpointer event_data)
                        __bt_adapter_le_handle_pending_request_info(
                                        BLUETOOTH_ERROR_INTERNAL,
                                        BT_START_LE_DISCOVERY, NULL, 0);
+
+                       if (TIZEN_FEATURE_DA_REFERENCE) {
+                               BT_DBG("### stop LE discovery");
+                               int ret = gattc_stop_le_discovery(g_gatt_client_id);
+                               if (OAL_STATUS_SUCCESS != ret)
+                                       BT_ERR("### gattc_stop_le_discovery failed");
+                       }
                        break;
                }