gap: return uint8_t for gap_encryption_key_size

This commit is contained in:
Matthias Ringwald 2021-12-13 15:21:19 +01:00
parent f461b3dfe4
commit 6d105c7159
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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)){