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

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

legacy: Enum-ify tSMP_SEC_LEVEL am: 592953d7

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1948944

Change-Id: Ica616271eca6df1c0bccefaa01885b33a4335b13
parents ddf3791a 592953d7
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -212,10 +212,11 @@ enum : uint8_t {

typedef uint8_t tSMP_AUTH_REQ;

#define SMP_SEC_NONE 0
#define SMP_SEC_UNAUTHENTICATE (1 << 0)
#define SMP_SEC_AUTHENTICATED (1 << 2)
typedef uint8_t tSMP_SEC_LEVEL;
typedef enum : uint8_t {
  SMP_SEC_NONE = 0,
  SMP_SEC_UNAUTHENTICATE = 1,
  SMP_SEC_AUTHENTICATED = 2,
} tSMP_SEC_LEVEL;

/* Maximum Encryption Key Size range */
#define SMP_ENCR_KEY_SIZE_MIN 7