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

Commit cc9094dc authored by Chris Manton's avatar Chris Manton
Browse files

enum-ify stack/include/btm_api_types::BTM_SEC_MODE_

Towards readable code

Bug: 163134718
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Test: classic paired Bose SoundLink
Change-Id: Id0a224123165082c4a4c6d9dcaa9c6d4dc9bdfbe
parent 9f2aa9d2
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -462,10 +462,11 @@ typedef void(tBTM_ESCO_CBACK)(tBTM_ESCO_EVT event, tBTM_ESCO_EVT_DATA* p_data);
 *  Security Manager Constants
 *******************************/

/* Security Mode (BTM_SetSecurityMode) */
#define BTM_SEC_MODE_SERVICE 2
#define BTM_SEC_MODE_SP 4
#define BTM_SEC_MODE_SC 6
typedef enum : uint8_t {
  BTM_SEC_MODE_SERVICE = 2,
  BTM_SEC_MODE_SP = 4,
  BTM_SEC_MODE_SC = 6,
} tSECURITY_MODE;

/* Security Service Levels [bit mask] (BTM_SetSecurityLevel)
 * Encryption should not be used without authentication