Skip to content

Commit 5ae59fc

Browse files
committed
BLE - Improve FEATURE_PRIVACY conditions.
1 parent 24f7f36 commit 5ae59fc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

features/FEATURE_BLE/source/generic/GenericSecurityManager.tpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ ble_error_t GenericSecurityManager<TPalSecurityManager, SigningMonitor>::init_(
9898
#endif
9999
_pal.set_event_handler(this);
100100

101+
#if BLE_FEATURE_PRIVACY
101102
result = init_resolving_list();
103+
#endif
102104

103105
if (result != BLE_ERROR_NONE) {
104106
delete _db;
@@ -126,7 +128,9 @@ ble_error_t GenericSecurityManager<TPalSecurityManager, SigningMonitor>::setData
126128
return result;
127129
}
128130

131+
#if BLE_FEATURE_PRIVACY
129132
init_resolving_list();
133+
#endif
130134

131135
return BLE_ERROR_NONE;
132136
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ CordioSecurityManager<EventHandler>::CordioSecurityManager() :
4545
template <class EventHandler>
4646
CordioSecurityManager<EventHandler>::~CordioSecurityManager()
4747
{
48+
#if BLE_FEATURE_PRIVACY
4849
clear_privacy_control_blocks();
50+
#endif
4951
}
5052

5153
////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)