[CTC][platform-permission][NonACR][TFDF-2115, platform-permission failed on testhub] 60/206460/3
authorPriya Kohli <priya.kohli@samsung.com>
Mon, 20 May 2019 06:10:56 +0000 (11:40 +0530)
committershobhit verma <shobhit.v@samsung.com>
Mon, 20 May 2019 06:36:22 +0000 (06:36 +0000)
Change-Id: I14938eeb9b7b3ecab31c0e4bd6d5050d199fda13
Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
src/ctc/platform-permission/CTs-platform-permission-bluetooth.c
src/ctc/platform-permission/CTs-platform-permission-common.h

index f497680e13edcf5f80a16c90a027da5525a8b770..e1f463a26e1101c4c0e0c2773ffcc9879a1fb9ec 100755 (executable)
@@ -668,6 +668,14 @@ int CTc_Bluetooth_PrivilegeBluetooth_gatt_connect(void)
                FPRINTF("[Line : %d][%s] [%s] is not supported\\n", __LINE__, API_NAMESPACE, FEATURE_BLUETOOTH_LE);
                return 0;
        }
+
+       bool bIsSupportedGattClient = false;
+       IS_FEATURE_SUPPORTED(FEATURE_BLUETOOTH_GATT_CLIENT, bIsSupportedGattClient, API_NAMESPACE);
+       if ( false == bIsSupportedGattClient )
+       {
+               FPRINTF("[Line : %d][%s] [%s] is not supported\\n", __LINE__, API_NAMESPACE, FEATURE_BLUETOOTH_GATT_CLIENT);
+               return 0;
+       }
     else
        {
                nRet = bt_initialize();
index da2d5be0771fc1fbdf600ae75908df1913f8d128..f2758c78988a4a46efa95ba6f7a5950bf01ebbce 100755 (executable)
 #define FEATURE_BLUETOOTH_TETHERING            "http://tizen.org/feature/network.tethering.bluetooth"
 #define FEATURE_BLUETOOTH_OPP                  "http://tizen.org/feature/network.bluetooth.opp"
 #define FEATURE_BLUETOOTH_CALL                 "http://tizen.org/feature/network.bluetooth.audio.call"
+#define FEATURE_BLUETOOTH_GATT_CLIENT  "http://tizen.org/feature/network.bluetooth.le.gatt.client"
 #define FEATURE_CAMERA_BACK_FLASH              "http://tizen.org/feature/camera.back.flash"
 #define FEATURE_CAMERA_FRONT_FLASH             "http://tizen.org/feature/camera.front.flash"
 #define FEATURE_GPS                                            "http://tizen.org/feature/location.gps"