Handle the recovery only for wearable profile
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-adaptation / services / bt-service-main.c
index d6e3b0f..ea38343 100644 (file)
@@ -187,12 +187,14 @@ static gboolean __bt_check_bt_service(void *data)
        le_status = _bt_adapter_get_le_status();
        BT_DBG("State: %d, LE State: %d", status, le_status);
 
-       if (status == BT_ACTIVATED) {
-               BT_INFO("Need to recover because bt has been activated without bt-service");
-               ret = _bt_recover_adapter();
-               if (ret != BLUETOOTH_ERROR_NONE)
-                       BT_ERR("_bt_recover_adapter is failed : %d", ret);
-               return FALSE;
+       if (TIZEN_PROFILE_WEARABLE) {
+               if (status == BT_ACTIVATED) {
+                       BT_INFO("Need to recover because bt has been activated without bt-service");
+                       ret = _bt_recover_adapter();
+                       if (ret != BLUETOOTH_ERROR_NONE)
+                               BT_ERR("_bt_recover_adapter is failed : %d", ret);
+                       return FALSE;
+               }
        }
 
        if (TIZEN_PROFILE_TV) {