Skip to content

Commit bc11834

Browse files
fix not setting encryption state in generic
1 parent d5b8439 commit bc11834

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,12 +969,14 @@ void GenericSecurityManager::on_link_encryption_result(
969969

970970
cb->encryption_requested = false;
971971
cb->encryption_failed = false;
972+
cb->encrypted = true;
972973

973974
} else if (result == link_encryption_t::ENCRYPTED_WITH_MITM) {
974975

975976
cb->encryption_requested = false;
976977
cb->encryption_failed = false;
977978
cb->authenticated = true;
979+
cb->encrypted = true;
978980

979981
} else if (result == link_encryption_t::NOT_ENCRYPTED
980982
&& cb->encryption_requested

0 commit comments

Comments
 (0)