From 829451f652a956d9a8cb57f4346cf81adf523e8a Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Sun, 20 Sep 2020 09:13:26 -0700 Subject: [PATCH] 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 --- stack/btm/btm_int_types.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stack/btm/btm_int_types.h b/stack/btm/btm_int_types.h index e24823dba..49da0c229 100644 --- a/stack/btm/btm_int_types.h +++ b/stack/btm/btm_int_types.h @@ -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 */ -- 2.11.0