mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-15 23:42:52 +00:00
sm: fix update of sc flag for re-encrypted connection in peripheral role
# Conflicts: # CHANGELOG.md
This commit is contained in:
parent
6ccd824859
commit
dd583d9fc5
@ -15,7 +15,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
## Changes November 2020
|
||||
|
||||
### Fixed
|
||||
L2CAP: trigger pairing for outgoing LE Data Channels if security level insufficient
|
||||
- L2CAP: trigger pairing for outgoing LE Data Channels if security level insufficient
|
||||
- SM: fix update of sc flag for re-encrypted connection in peripheral role
|
||||
|
||||
### Added
|
||||
|
||||
|
@ -3443,7 +3443,6 @@ static void sm_event_packet_handler (uint8_t packet_type, uint16_t channel, uint
|
||||
}
|
||||
|
||||
if (!sm_conn->sm_connection_encrypted) break;
|
||||
sm_conn->sm_connection_sc = setup->sm_use_secure_connections;
|
||||
|
||||
// continue pairing
|
||||
switch (sm_conn->sm_engine_state){
|
||||
@ -3452,6 +3451,7 @@ static void sm_event_packet_handler (uint8_t packet_type, uint16_t channel, uint
|
||||
sm_done_for_handle(sm_conn->sm_handle);
|
||||
break;
|
||||
case SM_PH2_W4_CONNECTION_ENCRYPTED:
|
||||
sm_conn->sm_connection_sc = setup->sm_use_secure_connections;
|
||||
if (IS_RESPONDER(sm_conn->sm_role)){
|
||||
// slave
|
||||
if (setup->sm_use_secure_connections){
|
||||
|
Loading…
x
Reference in New Issue
Block a user