Add HCI error reason 65/106065/1
authorInjun Yang <injun.yang@samsung.com>
Tue, 20 Dec 2016 09:34:15 +0000 (18:34 +0900)
committerInjun Yang <injun.yang@samsung.com>
Tue, 20 Dec 2016 09:34:15 +0000 (18:34 +0900)
Change-Id: I8f2ea88e609e547e2d4bf526b5431defcbfb17ee
Signed-off-by: Injun Yang <injun.yang@samsung.com>
bt-service/bt-service-common.c
bt-service/bt-service-event-receiver.c
include/bluetooth-api.h

index d134027..fd21a2a 100644 (file)
@@ -778,6 +778,14 @@ char * _bt_convert_disc_reason_to_string(int reason)
                return "Repeated attempts";
        case (int)BLUETOOTH_ERROR_LMP_RESPONSE_TIMEOUT:
                return "LMP response timeout";
+       case (int)BLUETOOTH_ERROR_LMP_TRANSACTION_COLLISION:
+               return "LMP transaction collision";
+       case (int)BLUETOOTH_ERROR_INSTANT_PASSED:
+               return "Instant passed";
+       case (int)BLUETOOTH_ERROR_INSUFFICIENT_SECURITY:
+               return "Insufficient security";
+       case (int)BLUETOOTH_ERROR_CONNECTION_TERMINATED_DUE_TO_MIC_FAILURE:
+               return "Connection terminated due to MIC failure";
        case (int)BLUETOOTH_ERROR_CONNECTION_FAILED_TO_BE_ESTABLISHED:
                return "Connection failed to be established";
        default:
index bf23836..2435423 100644 (file)
@@ -594,13 +594,13 @@ void _bt_handle_adapter_event(GVariant *msg, const char *member)
                                param);
                g_free(address);
        } else if (strcasecmp(member, BT_HARDWARE_ERROR) == 0) {
-               BT_ERR_C("Hardware error received from BLUEZ");
+               BT_ERR_C("### Hardware error received from BLUEZ");
 /* Don't add the recovery logic into platform */
 #if 0
                _bt_recover_adapter();
 #endif
        } else if (strcasecmp(member, BT_TX_TIMEOUT_ERROR) == 0) {
-               BT_ERR_C("Tx timeout error received from BLUEZ");
+               BT_ERR_C("### Tx timeout error received from BLUEZ");
 /* Don't add the recovery logic into platform */
 #if 0
                _bt_recover_adapter();
index 74d4541..7ed913c 100644 (file)
@@ -188,6 +188,10 @@ extern "C" {
 #define BLUETOOTH_ERROR_LOCAL_HOST_TERM        0x16
 #define BLUETOOTH_ERROR_REPEATED_ATTEMPTS      0x17
 #define BLUETOOTH_ERROR_LMP_RESPONSE_TIMEOUT 0x22
+#define BLUETOOTH_ERROR_LMP_TRANSACTION_COLLISION 0x23
+#define BLUETOOTH_ERROR_INSTANT_PASSED 0x28
+#define BLUETOOTH_ERROR_INSUFFICIENT_SECURITY 0x2f
+#define BLUETOOTH_ERROR_CONNECTION_TERMINATED_DUE_TO_MIC_FAILURE 0x3d
 #define BLUETOOTH_ERROR_CONNECTION_FAILED_TO_BE_ESTABLISHED    0x3e