Fixed internal issues found in test

PiperOrigin-RevId: 537340986
This commit is contained in:
Guogang Li
2023-06-02 10:07:33 -07:00
committed by Copybara-Service
parent 5f31f27f0e
commit 5740dcccbb
@@ -272,6 +272,8 @@ std::unique_ptr<BleV2Medium::ScanningSession> BleV2Medium::StartScanning(
if (adapter_->IsExtendedAdvertisingSupported()) {
watcher_.AllowExtendedAdvertisements(true);
} else {
watcher_.AllowExtendedAdvertisements(false);
}
// Active mode indicates that scan request packets will be sent to query
@@ -954,8 +956,6 @@ void BleV2Medium::AdvertisementReceivedHandler(
ble_advertisement_data.is_extended_advertisement = false;
} else {
ble_advertisement_data.is_extended_advertisement = true;
// test purpose
return;
}
ble_advertisement_data.service_data[service_uuid_] = advertisement_data;