mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-31 00:32:52 +00:00
gap: return uint8_t for gap_encryption_key_size
This commit is contained in:
parent
f461b3dfe4
commit
6d105c7159
@ -613,7 +613,7 @@ uint16_t gap_le_connection_interval(hci_con_handle_t con_handle);
|
||||
* @param con_handle
|
||||
* @return 0 if not encrypted, 7-16 otherwise
|
||||
*/
|
||||
int gap_encryption_key_size(hci_con_handle_t con_handle);
|
||||
uint8_t gap_encryption_key_size(hci_con_handle_t con_handle);
|
||||
|
||||
/**
|
||||
* @brief Get authentication property.
|
||||
|
@ -6764,7 +6764,7 @@ static sm_connection_t * sm_get_connection_for_handle(hci_con_handle_t con_handl
|
||||
// without sm.c default values from create_connection_for_bd_addr_and_type() resulg in non-encrypted, not-authenticated
|
||||
#endif
|
||||
|
||||
int gap_encryption_key_size(hci_con_handle_t con_handle){
|
||||
uint8_t gap_encryption_key_size(hci_con_handle_t con_handle){
|
||||
hci_connection_t * hci_connection = hci_connection_for_handle(con_handle);
|
||||
if (hci_connection == NULL) return 0;
|
||||
if (hci_is_le_connection(hci_connection)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user