mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 15:39:59 +00:00
hci: avoid race condition to set BONDING_SEND_AUTHENTICATE_REQUEST
This commit is contained in:
parent
74237e5a59
commit
7fdbaf795c
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
### Fixed
|
||||
- GAP: fix gap_connect_cancel for gap_connect_with_whitelist
|
||||
- GAP: fix race condition that causes duplicate authenticate request
|
||||
- L2CAP: Fix accept incoming ERTM connection when Information Request already complete
|
||||
- HFP AG: activate all AG indicators upon service level connection establishment
|
||||
- HFP_AG: handle call termination in alerting call state
|
||||
|
@ -6961,12 +6961,11 @@ void gap_request_security_level(hci_con_handle_t con_handle, gap_security_level_
|
||||
// store request
|
||||
connection->requested_security_level = requested_level;
|
||||
|
||||
// request remote features if not already active
|
||||
hci_remote_features_query(con_handle);
|
||||
|
||||
// start to authenticate connection
|
||||
connection->bonding_flags |= BONDING_SEND_AUTHENTICATE_REQUEST;
|
||||
hci_run();
|
||||
|
||||
// request remote features if not already active, also trigger hci_run
|
||||
hci_remote_features_query(con_handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user