gap: add gap_secure_connections_active() to query if BR/EDR Secure Connecions are possible

This commit is contained in:
Matthias Ringwald 2022-02-25 11:19:02 +01:00
parent 3ad98ca75b
commit 22d445d87e
3 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- HCI: ENABLE_HCI_SERIALIZED_CONTROLLER_OPERATIONS serializes Inquiry, Remote Name Request and Create Connection operations
- GAP: support extended advertising with ENABLE_LE_EXTENDED_ADVERTISING
- GAP: gap_enable_link_watchdog() uses automatic flush timeout to disconnect if data cannot be sent
- GAP: gap_secure_connections_active() to query if BR/EDR Secure Connecions are possible
- ATT DB: provide gatt_server_get_handle_range_for_service_with_uuid16 to find included service within handle range
- GATT Service: Audio Input Control Service Server (AICS 1.0)
- GATT Service: Volume Control Service Server (VCS 1.0)

View File

@ -361,6 +361,12 @@ void gap_ssp_set_authentication_requirement(int authentication_requirement);
*/
void gap_secure_connections_enable(bool enable);
/**
* @brief Query if Secure Connections can be used for Classic connections.
* @note Requires gap_secure_connections_enable == true and Controller to support it
*/
bool gap_secure_connections_active(void);
/**
* @brief If set, BTstack will confirm a numeric comparison and enter '000000' if requested.
*/

View File

@ -6033,6 +6033,9 @@ void gap_ssp_set_auto_accept(int auto_accept){
void gap_secure_connections_enable(bool enable){
hci_stack->secure_connections_enable = enable;
}
bool gap_secure_connections_active(void){
hci_stack->secure_connections_active;
}
#endif