Allow to use reserved slot for non-wearable devices. 63/136963/2
authorDeokhyun Kim <dukan.kim@samsung.com>
Tue, 4 Jul 2017 01:52:44 +0000 (10:52 +0900)
committerDeokhyun Kim <dukan.kim@samsung.com>
Tue, 4 Jul 2017 02:29:45 +0000 (02:29 +0000)
Change-Id: Ibe4d17d98d7626505ed646f485815a810bcb7440
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
bt-api/bt-adapter-le.c

index 8cbb29d..6cf49e4 100644 (file)
@@ -270,7 +270,7 @@ gboolean __bluetooth_is_privileged_process(void)
 BT_EXPORT_API int bluetooth_set_advertising(int handle, gboolean enable)
 {
        int result;
-       gboolean use_reserved_slot = FALSE;
+       gboolean use_reserved_slot = TRUE;
 
        BT_CHECK_ENABLED_ANY(return);
 
@@ -297,7 +297,7 @@ BT_EXPORT_API int bluetooth_set_custom_advertising(int handle, gboolean enable,
                                                bluetooth_advertising_params_t *params)
 {
        int result;
-       gboolean use_reserved_slot = FALSE;
+       gboolean use_reserved_slot = TRUE;
 
        BT_CHECK_ENABLED_ANY(return);
 
@@ -352,7 +352,7 @@ BT_EXPORT_API int bluetooth_get_advertising_data(bluetooth_advertising_data_t *a
 BT_EXPORT_API int bluetooth_set_advertising_data(int handle, const bluetooth_advertising_data_t *value, int length)
 {
        int result;
-       gboolean use_reserved_slot = FALSE;
+       gboolean use_reserved_slot = TRUE;
 
        BT_CHECK_PARAMETER(value, return);
        BT_CHECK_ENABLED_ANY(return);
@@ -412,7 +412,7 @@ BT_EXPORT_API int bluetooth_set_scan_response_data(int handle,
                        const bluetooth_scan_resp_data_t *value, int length)
 {
        int result;
-       gboolean use_reserved_slot = FALSE;
+       gboolean use_reserved_slot = TRUE;
 
        BT_CHECK_PARAMETER(value, return);
        BT_CHECK_ENABLED_ANY(return);