This Patch adds new enum for ACL disconnection 80/315680/4 accepted/tizen_9.0_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain tizen_9.0 accepted/tizen/9.0/unified/20241031.000336 accepted/tizen/unified/20240829.153504 accepted/tizen/unified/dev/20240901.214603 accepted/tizen/unified/toolchain/20241004.102102 accepted/tizen/unified/x/20240830.014101 accepted/tizen/unified/x/asan/20241014.000504 tizen_9.0_m2_release
authorSameer Kumar <sameer.kumar@samsung.com>
Tue, 6 Aug 2024 05:07:13 +0000 (10:37 +0530)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 29 Aug 2024 00:30:56 +0000 (00:30 +0000)
 BT_DEVICE_DISCONNECT_REASON_MIC_FAILURE

Change-Id: I9201b04ec02fc553608b3e24958a831ab84706a5
Signed-off-by: Sameer Kumar <sameer.kumar@samsung.com>
include/bluetooth_type.h
src/bluetooth-common.c

index a2e4001faac262c37c795c5391f39ffda61c24c3..89c46f5a55a9a422bd0f327a98fc25ce6029e061 100644 (file)
@@ -221,6 +221,7 @@ typedef enum {
        BT_DEVICE_DISCONNECT_REASON_TIMEOUT, /**< Disconnected by timeout */
        BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST, /**< Disconnected by local host */
        BT_DEVICE_DISCONNECT_REASON_REMOTE, /**< Disconnected by remote */
+       BT_DEVICE_DISCONNECT_REASON_MIC_FAILURE, /**< Disconnected by MIC failure (Since 9.0) */
 } bt_device_disconnect_reason_e;
 
 /**
index 015bf36fcabe8dff850a0d25b0793f954d70564f..adfce2876d9b7bbf7f72eb08a2152d10f22c7186 100644 (file)
@@ -985,6 +985,9 @@ static int __bt_get_bt_device_connection_info_s(bt_device_connection_info_s **de
        case (int)BLUETOOTH_ERROR_LOCAL_HOST_TERM:
                (*dest)->disconn_reason = BT_DEVICE_DISCONNECT_REASON_LOCAL_HOST;
                break;
+       case (int)BLUETOOTH_ERROR_CONNECTION_TERMINATED_DUE_TO_MIC_FAILURE:
+               (*dest)->disconn_reason = BT_DEVICE_DISCONNECT_REASON_MIC_FAILURE;
+               break;
        default:
                (*dest)->disconn_reason = BT_DEVICE_DISCONNECT_REASON_UNKNOWN;
                break;