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

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

Enum-ify stack/include/btm_api_types::BTM_AUTH_ am: 60dc97e2 am: 346b3828

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iea4553b5539c21bfaf358c23e64e651ebed3c79f
parents d1b7965a 346b3828
Loading
Loading
Loading
Loading
+26 −24
Original line number Original line Diff line number Diff line
@@ -622,30 +622,32 @@ typedef uint8_t tBTM_IO_CAP;


#define BTM_MAX_PASSKEY_VAL (999999)
#define BTM_MAX_PASSKEY_VAL (999999)


/* MITM Protection Not Required - Single Profile/non-bonding Numeric comparison
typedef enum : uint8_t {
 * with automatic accept allowed */
  /* MITM Protection Not Required - Single Profile/non-bonding Numeric
   * comparison with automatic accept allowed */
  // NO_BONDING
  // NO_BONDING
#define BTM_AUTH_SP_NO 0
  BTM_AUTH_SP_NO = 0,
/* MITM Protection Required - Single Profile/non-bonding. Use IO Capabilities to
  /* MITM Protection Required - Single Profile/non-bonding. Use IO Capabilities
 * determine authentication procedure */
   * to determine authentication procedure */
  // NO_BONDING_MITM_PROTECTION
  // NO_BONDING_MITM_PROTECTION
#define BTM_AUTH_SP_YES 1
  BTM_AUTH_SP_YES = 1,
  /* MITM Protection Not Required - All Profiles/dedicated bonding Numeric
  /* MITM Protection Not Required - All Profiles/dedicated bonding Numeric
   * comparison with automatic accept allowed */
   * comparison with automatic accept allowed */
  // DEDICATED_BONDING
  // DEDICATED_BONDING
#define BTM_AUTH_AP_NO 2
  BTM_AUTH_AP_NO = 2,
/* MITM Protection Required - All Profiles/dedicated bonding Use IO Capabilities
  /* MITM Protection Required - All Profiles/dedicated bonding Use IO
 * to determine authentication procedure */
   * Capabilities to determine authentication procedure */
  // DEDICATED_BONDING_MITM_PROTECTION
  // DEDICATED_BONDING_MITM_PROTECTION
#define BTM_AUTH_AP_YES 3
  BTM_AUTH_AP_YES = 3,
  /* MITM Protection Not Required - Single Profiles/general bonding Numeric
  /* MITM Protection Not Required - Single Profiles/general bonding Numeric
   * comparison with automatic accept allowed */
   * comparison with automatic accept allowed */
  // GENERAL_BONDING
  // GENERAL_BONDING
#define BTM_AUTH_SPGB_NO 4
  BTM_AUTH_SPGB_NO = 4,
  /* MITM Protection Required - Single Profiles/general bonding Use IO
  /* MITM Protection Required - Single Profiles/general bonding Use IO
   * Capabilities to determine authentication procedure */
   * Capabilities to determine authentication procedure */
  // GENERAL_BONDING_MITM_PROTECTION
  // GENERAL_BONDING_MITM_PROTECTION
#define BTM_AUTH_SPGB_YES 5
  BTM_AUTH_SPGB_YES = 5,
} tBTM_AUTH;


/* this bit is ORed with BTM_AUTH_SP_* when IO exchange for dedicated bonding */
/* this bit is ORed with BTM_AUTH_SP_* when IO exchange for dedicated bonding */
#define BTM_AUTH_DD_BOND 2
#define BTM_AUTH_DD_BOND 2