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

Commit 7c680590 authored by Chris Manton's avatar Chris Manton
Browse files

Encapsulate tBTM_CB::enc_rand, ediv, key_size

Towards readable code

Bug: 163134718
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Test: classic paired Bose SoundLink
Change-Id: I7e5962356b64b52011e370deb03b53a2ca4b42ad
parent 8a9fb1c5
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -211,10 +211,15 @@ typedef struct {
                                        const Octet16& stk);
  uint16_t enc_handle;

 public:
  friend void btm_ble_ltk_request(uint16_t handle, uint8_t rand[8],
                                  uint16_t ediv);
  BT_OCTET8 enc_rand; /* received rand value from LTK request*/

  uint16_t ediv;      /* received ediv value from LTK request */

  uint8_t key_size;

 public:
  tBTM_BLE_VSC_CB cmn_ble_vsc_cb;

  /* Packet types supported by the local device */