BLE - Improve FEATURE_PRIVACY conditions.

pull/9790/head
Vincent Coubard 2019-02-28 14:47:07 +00:00
parent 24f7f36f01
commit 5ae59fc534
2 changed files with 6 additions and 0 deletions

View File

@ -98,7 +98,9 @@ ble_error_t GenericSecurityManager<TPalSecurityManager, SigningMonitor>::init_(
#endif #endif
_pal.set_event_handler(this); _pal.set_event_handler(this);
#if BLE_FEATURE_PRIVACY
result = init_resolving_list(); result = init_resolving_list();
#endif
if (result != BLE_ERROR_NONE) { if (result != BLE_ERROR_NONE) {
delete _db; delete _db;
@ -126,7 +128,9 @@ ble_error_t GenericSecurityManager<TPalSecurityManager, SigningMonitor>::setData
return result; return result;
} }
#if BLE_FEATURE_PRIVACY
init_resolving_list(); init_resolving_list();
#endif
return BLE_ERROR_NONE; return BLE_ERROR_NONE;
} }

View File

@ -45,7 +45,9 @@ CordioSecurityManager<EventHandler>::CordioSecurityManager() :
template <class EventHandler> template <class EventHandler>
CordioSecurityManager<EventHandler>::~CordioSecurityManager() CordioSecurityManager<EventHandler>::~CordioSecurityManager()
{ {
#if BLE_FEATURE_PRIVACY
clear_privacy_control_blocks(); clear_privacy_control_blocks();
#endif
} }
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////