mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-21 12:40:42 +00:00
sm: store CTKD key with Public Identity Address
This commit is contained in:
parent
e8ad470ff8
commit
55160b1c55
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
### Fixed
|
||||
- AVRCP/AVCTP: report AVRCP 1.6 and AVCTP 1.4 in SDP record
|
||||
- SM: only trigger Cross-Transport Key Derivation (CTKD) when bonding is enabled
|
||||
- SM: store CTKD key with Public Identity Address
|
||||
- HFP HF: fix response to AG Codec Selection while waiting for OK of parallel command
|
||||
|
||||
### Added
|
||||
|
@ -1535,11 +1535,7 @@ static void sm_sc_cmac_done(uint8_t * hash){
|
||||
link_key_type = sm_conn->sm_connection_authenticated ?
|
||||
AUTHENTICATED_COMBINATION_KEY_GENERATED_FROM_P256 : UNAUTHENTICATED_COMBINATION_KEY_GENERATED_FROM_P256;
|
||||
log_info("Derived classic link key from LE using h6, type %u", (int) link_key_type);
|
||||
if (IS_RESPONDER(sm_conn->sm_role)){
|
||||
gap_store_link_key_for_bd_addr(setup->sm_m_address, setup->sm_t, link_key_type);
|
||||
} else {
|
||||
gap_store_link_key_for_bd_addr(setup->sm_s_address, setup->sm_t, link_key_type);
|
||||
}
|
||||
gap_store_link_key_for_bd_addr(setup->sm_peer_address, setup->sm_t, link_key_type);
|
||||
#endif
|
||||
if (IS_RESPONDER(sm_conn->sm_role)){
|
||||
sm_conn->sm_engine_state = SM_RESPONDER_IDLE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user