Disable auto connect while calling bt_gatt_connect 02/260502/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211029.013650 accepted/tizen/7.0/unified/20221110.061438 accepted/tizen/7.0/unified/hotfix/20221116.110905 accepted/tizen/unified/20210629.130141 submit/tizen/20210628.055145 submit/tizen_6.5/20211028.163401 tizen_6.5.m2_release tizen_7.0_m2_release
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 14 Jun 2021 07:29:04 +0000 (16:29 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 28 Jun 2021 00:26:25 +0000 (09:26 +0900)
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/812
(cherry-picked from a714931da5f0f4a31e8d993b2c5972681138f953)

Change-Id: Ibe67b77ce8c9477f88a567774dc777eb8761da4c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c

index 7c5f6c8..dac20be 100755 (executable)
@@ -1170,11 +1170,8 @@ CAResult_t CALEGattConnect(const char *remoteAddress)
     oc_mutex_lock(g_LEClientConnectMutex);
     CAResult_t result = CA_STATUS_OK;
 
-#ifdef TIZEN_VD
-    int ret = bt_gatt_connect(remoteAddress, true);
-#else
     int ret = bt_gatt_connect(remoteAddress, false);
-#endif
+
     if (BT_ERROR_NONE != ret)
     {
         OIC_LOG_V(ERROR, TAG, "bt_gatt_connect Failed with ret value [%s] ",