Add "not supported" check logic in the device API 11/161211/1
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:38 +0000 (15:50 +0900)
Change-Id: I5e4ba80900f03aa48bcb022aae544725ee16e905
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-device.c

index 98edb2c..a8de42f 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 ||