BLE: check LL resolution availability before enabling it.

pull/13759/head
Vincent Coubard 2020-09-09 22:50:37 +01:00
parent e5128689aa
commit 559640cbd5
1 changed files with 6 additions and 2 deletions

View File

@ -920,7 +920,9 @@ ble_error_t Gap::setPeripheralPrivacyConfiguration(
{
_peripheral_privacy_configuration = *configuration;
update_ll_address_resolution_setting();
if (_address_registry.is_controller_privacy_supported()) {
update_ll_address_resolution_setting();
}
return BLE_ERROR_NONE;
}
@ -950,7 +952,9 @@ ble_error_t Gap::setCentralPrivacyConfiguration(
{
_central_privacy_configuration = *configuration;
update_ll_address_resolution_setting();
if (_address_registry.is_controller_privacy_supported()) {
update_ll_address_resolution_setting();
}
return BLE_ERROR_NONE;
}