@@ -1105,6 +1105,7 @@ void GenericSecurityManager<TPalSecurityManager, SigningMonitor>::on_connected_(
1105
1105
const BLEProtocol::AddressBytes_t local_address,
1106
1106
const ::Gap::ConnectionParams_t *connection_params
1107
1107
) {
1108
+ #if BLE_FEATURE_SECURITY
1108
1109
MBED_ASSERT (_db);
1109
1110
ControlBlock_t *cb = acquire_control_block (connection);
1110
1111
if (!cb) {
@@ -1136,14 +1137,16 @@ void GenericSecurityManager<TPalSecurityManager, SigningMonitor>::on_connected_(
1136
1137
cb->db_entry
1137
1138
);
1138
1139
}
1139
- #endif
1140
+ #endif // BLE_FEATURE_SIGNING
1141
+ #endif // BLE_FEATURE_SECURITY
1140
1142
}
1141
1143
1142
1144
template <template <class > class TPalSecurityManager , template <class > class SigningMonitor >
1143
1145
void GenericSecurityManager<TPalSecurityManager, SigningMonitor>::on_disconnected_(
1144
1146
connection_handle_t connection,
1145
1147
::Gap::DisconnectionReason_t reason
1146
1148
) {
1149
+ #if BLE_FEATURE_SECURITY
1147
1150
MBED_ASSERT (_db);
1148
1151
ControlBlock_t *cb = get_control_block (connection);
1149
1152
if (!cb) {
@@ -1155,6 +1158,7 @@ void GenericSecurityManager<TPalSecurityManager, SigningMonitor>::on_disconnecte
1155
1158
1156
1159
_db->close_entry (cb->db_entry );
1157
1160
release_control_block (cb);
1161
+ #endif // BLE_FEATURE_SECURITY
1158
1162
}
1159
1163
1160
1164
template <template <class > class TPalSecurityManager , template <class > class SigningMonitor >
0 commit comments