Update flag for AWDL

PiperOrigin-RevId: 746205866
This commit is contained in:
Guogang Li
2025-04-10 15:55:24 -07:00
committed by Copybara-Service
parent 17bda8cc94
commit bd187dc741
3 changed files with 9 additions and 2 deletions
@@ -142,6 +142,9 @@ void NearbyConnectionsServiceImpl::StartDiscovery(
NcDiscoveryOptions options{};
options.strategy = ConvertToServiceStrategy(discovery_options.strategy);
// NcDiscoveryOptions enabled all mediums by default, we should apply the
// settings from discovery_options.
options.allowed.SetAll(false);
options.allowed.ble = discovery_options.allowed_mediums.ble;
options.allowed.bluetooth = discovery_options.allowed_mediums.bluetooth;
options.allowed.web_rtc = discovery_options.allowed_mediums.web_rtc;