DBG("reason %u", reason);
/* Only attempt reconnect for the following reasons */
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ /* In the timeout case, the error is converted to HCI_ERROR_CONNECTION_TIMEOUT(0x08)
+ * by mgmt_to_hci_reason(). But, in the suspend case, no conversion is performed */
+ if (reason != 0x08 &&
+ reason != MGMT_DEV_DISCONN_LOCAL_HOST_SUSPEND)
+#else
if (reason != MGMT_DEV_DISCONN_TIMEOUT &&
reason != MGMT_DEV_DISCONN_LOCAL_HOST_SUSPEND)
+#endif
return;
reconnect = reconnect_find(dev);
reconnect_set_timer(reconnect, resume_delay);
}
break;
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ case 0x08: /* HCI_ERROR_CONNECTION_TIMEOUT */
+ reconnect_set_timer(reconnect, -1);
+ break;
+#else
case MGMT_DEV_DISCONN_TIMEOUT:
reconnect_set_timer(reconnect, -1);
break;
+#endif
default:
DBG("Developer error. Reason = %d", reason);
break;