Disable auto enable logic by bt-core 61/180161/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 25 May 2018 06:56:41 +0000 (15:56 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 25 May 2018 06:56:41 +0000 (15:56 +0900)
Change-Id: Ia2ca1578bd189b8590ac6c17958810f927c8d00b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-core/bt-core-main.c

index 04612e3..299a6ca 100644 (file)
@@ -105,11 +105,12 @@ static gboolean __bt_check_bt_core(void *data)
        if ((bt_status != VCONFKEY_BT_STATUS_OFF || bt_off_due_to_timeout) &&
                (status == BT_DEACTIVATED)) {
                BT_DBG("Previous session was enabled.");
-
+#if 0
                /* Enable the BT */
                _bt_core_service_request_adapter(BT_ENABLE_ADAPTER);
                if (!TIZEN_FEATURE_BT_USB_DONGLE)
                        _bt_enable_adapter();
+#endif
        } else if (bt_status == VCONFKEY_BT_STATUS_OFF &&
                        (flight_mode_deactivation == 1 || ps_mode_deactivation > 0)) {
                _bt_core_handle_flight_mode_noti();
@@ -121,11 +122,12 @@ static gboolean __bt_check_bt_core(void *data)
 
        if ((bt_le_status == VCONFKEY_BT_LE_STATUS_ON) && (le_status == BT_LE_DEACTIVATED)) {
                BT_DBG("Previous session was le enabled. Turn BT LE on automatically.");
-
+#if 0
                /* Enable the BT LE */
                _bt_core_service_request_adapter(BT_ENABLE_ADAPTER_LE);
                if (!TIZEN_FEATURE_BT_USB_DONGLE)
                        _bt_enable_adapter_le();
+#endif
        } else {
                status = _bt_core_get_status();
                le_status = _bt_core_get_le_status();