The encryption key size is read only for BR/EDR (ACL_LINK) connections
so there's no need to check for it in the read_enc_key_size_complete()
callback.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
if (!test_bit(HCI_CONN_ENCRYPT, &conn->flags))
encrypt = 0x00;
- else if (conn->type == ACL_LINK &&
- test_bit(HCI_CONN_AES_CCM, &conn->flags))
+ else if (test_bit(HCI_CONN_AES_CCM, &conn->flags))
encrypt = 0x02;
else
encrypt = 0x01;