Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecae7974 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Enum-ify stack/include/btm/::tBTM_BLE_SEC_ACT am: 6be1feac

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1687428

Change-Id: Idcf3ee475ac132cfcd5138798ad36f52659be1e6
parents 001c03b3 6be1feac
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -270,12 +270,13 @@ typedef uint8_t tBTM_EIR_SEARCH_RESULT;
/* 0x0A */
#define BTM_EIR_TX_POWER_LEVEL_TYPE HCI_EIR_TX_POWER_LEVEL_TYPE

#define BTM_BLE_SEC_NONE 0
typedef enum : uint8_t {
  BTM_BLE_SEC_NONE = 0,
  /* encrypt the link using current key */
#define BTM_BLE_SEC_ENCRYPT 1
#define BTM_BLE_SEC_ENCRYPT_NO_MITM 2
#define BTM_BLE_SEC_ENCRYPT_MITM 3
typedef uint8_t tBTM_BLE_SEC_ACT;
  BTM_BLE_SEC_ENCRYPT = 1,
  BTM_BLE_SEC_ENCRYPT_NO_MITM = 2,
  BTM_BLE_SEC_ENCRYPT_MITM = 3,
} tBTM_BLE_SEC_ACT;

/*******************************************************************************
 * BTM Services MACROS handle array of uint32_t bits for more than 32 services