Skip to content

Commit 9043714

Browse files
committed
BLE - Cordio PAL SM: Select correct security level in enable_encryption
1 parent 79db2af commit 9043714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalSecurityManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ ble_error_t CordioSecurityManager::enable_encryption(
157157

158158
DmSecEncryptReq(
159159
connection,
160-
/* FIXME: Security Level */ DM_SEC_LEVEL_ENC_AUTH,
160+
mitm ? DM_SEC_LEVEL_ENC_AUTH : DM_SEC_LEVEL_ENC,
161161
&sec_ltk
162162
);
163163

0 commit comments

Comments
 (0)