mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Improve readibility of condition.
parent
40a403e99b
commit
2860365a3c
|
|
@ -448,8 +448,8 @@ ble_error_t GenericSecurityManager::setLinkEncryption(
|
||||||
} else if (encryption == link_encryption_t::ENCRYPTED_WITH_SC_AND_MITM) {
|
} else if (encryption == link_encryption_t::ENCRYPTED_WITH_SC_AND_MITM) {
|
||||||
|
|
||||||
if (cb->ltk_mitm_protected &&
|
if (cb->ltk_mitm_protected &&
|
||||||
cb->secure_connections_paired && !
|
cb->secure_connections_paired &&
|
||||||
cb->encrypted
|
!cb->encrypted
|
||||||
) {
|
) {
|
||||||
cb->encryption_requested = true;
|
cb->encryption_requested = true;
|
||||||
return enable_encryption(connection);
|
return enable_encryption(connection);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue