Revert "hci: skip authenticate hack"

This reverts commit 914f56d2dfd78958e64f9b8781b866612a3605fa.
This commit is contained in:
Matthias Ringwald 2020-09-18 23:20:33 +02:00
parent 3011ca4a9a
commit 378d29b494

View File

@ -2489,9 +2489,9 @@ static void event_handler(uint8_t *packet, uint16_t size){
}
// if AES-CCM is used, authentication used SC -> authentication was mutual and we can skip explicit authentication
// if (connected_uses_aes_ccm){
if (connected_uses_aes_ccm){
conn->authentication_flags |= CONNECTION_AUTHENTICATED;
// }
}
if ((hci_stack->local_supported_commands[0] & 0x80) != 0){
// For Classic, we need to validate encryption key size first, if possible (== supported by Controller)