mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Update flag for AWDL
PiperOrigin-RevId: 746205866
This commit is contained in:
committed by
Copybara-Service
parent
17bda8cc94
commit
bd187dc741
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user