Add "not supported" check logic in the device API 10/161210/1 accepted/tizen/4.0/unified/20171124.063545 submit/tizen_4.0/20171122.070346
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 22 Nov 2017 06:49:33 +0000 (15:49 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 22 Nov 2017 06:50:05 +0000 (15:50 +0900)
Change-Id: I790ad6a41109d9a29ba5a4c3ac4e4ffddd208d31
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-device.c

index 98edb2c8ff4ecfd23e9411fcb65808fe46da0ce4..a8de42fbc70fa5008ce8a06214c666411693e561 100644 (file)
@@ -743,6 +743,8 @@ int bt_device_update_le_connection_mode(const char *remote_address, bt_device_le
        int ret;
        bluetooth_device_address_t addr_hex = { {0,} };
 
+       BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON);
+       BT_CHECK_INIT_STATUS();
        BT_CHECK_INPUT_PARAMETER(remote_address);
 
        if (mode < BT_DEVICE_LE_CONNECTION_MODE_BALANCED ||