Skip to content

Commit 21471bb

Browse files
author
Donatien Garnier
committed
and make sure it compiles and that policy is only applied if privacy is enabled :)
1 parent 926efa4 commit 21471bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/FEATURE_BLE/source/generic/GenericGap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,9 +1094,9 @@ void GenericGap::on_advertising_report(const pal::GapAdvertisingReportEvent& e)
10941094
pal::GapAdvertisingReportEvent::advertising_t advertising = e[i];
10951095

10961096
// Check if the address hasn't been resolved
1097-
if(_central_privacy_configuration.resolution_strategy == ResolutionStrategy::RESOLVE_AND_FILTER)
1097+
if(_privacy_enabled && _central_privacy_configuration.resolution_strategy == CentralPrivacyConfiguration_t::RESOLVE_AND_FILTER)
10981098
{
1099-
if(advertising.address_type == connection_peer_address_type_t::RANDOM_ADDRESS)
1099+
if(advertising.address_type == pal::connection_peer_address_type_t::RANDOM_ADDRESS)
11001100
{
11011101
// Filter it out
11021102
continue;

0 commit comments

Comments
 (0)