mirror of https://github.com/ARMmbed/mbed-os.git
BLE - Improve FEATURE_PRIVACY conditions.
parent
24f7f36f01
commit
5ae59fc534
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue