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
 | 
			
		||||
    _pal.set_event_handler(this);
 | 
			
		||||
 | 
			
		||||
#if BLE_FEATURE_PRIVACY
 | 
			
		||||
    result = init_resolving_list();
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    if (result != BLE_ERROR_NONE) {
 | 
			
		||||
        delete _db;
 | 
			
		||||
| 
						 | 
				
			
			@ -126,7 +128,9 @@ ble_error_t GenericSecurityManager<TPalSecurityManager, SigningMonitor>::setData
 | 
			
		|||
        return result;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
#if BLE_FEATURE_PRIVACY
 | 
			
		||||
    init_resolving_list();
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    return BLE_ERROR_NONE;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,7 +45,9 @@ CordioSecurityManager<EventHandler>::CordioSecurityManager() :
 | 
			
		|||
template <class EventHandler>
 | 
			
		||||
CordioSecurityManager<EventHandler>::~CordioSecurityManager()
 | 
			
		||||
{
 | 
			
		||||
#if BLE_FEATURE_PRIVACY
 | 
			
		||||
    clear_privacy_control_blocks();
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue