Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3465449 authored by Chienyuan's avatar Chienyuan
Browse files

PAST: Get sync from address when sync established

Bug: 232756394
Bug: 229965085
Tag: #gd-refactor
Test: gd/cet/run --sl4a_sl4a
Test: bluetooth_test_gd_unit
Change-Id: I021912896661a2eeb041f2c4526db67736ecbb72
(cherry picked from commit fec81555)
parent 3003b6e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -268,7 +268,7 @@ class PeriodicSyncManager {


    auto address_with_type = AddressWithType(event_view.GetAdvertiserAddress(), event_view.GetAdvertiserAddressType());
    auto address_with_type = AddressWithType(event_view.GetAdvertiserAddress(), event_view.GetAdvertiserAddressType());


    auto periodic_sync = GetSyncFromAddressWithTypeAndSid(address_with_type, event_view.GetAdvertisingSid());
    auto periodic_sync = GetSyncFromAddressAndSid(address_with_type.GetAddress(), event_view.GetAdvertisingSid());
    if (periodic_sync == periodic_syncs_.end()) {
    if (periodic_sync == periodic_syncs_.end()) {
      LOG_WARN("[PSync]: Invalid address and sid for sync established");
      LOG_WARN("[PSync]: Invalid address and sid for sync established");
      if (event_view.GetStatus() == ErrorCode::SUCCESS) {
      if (event_view.GetStatus() == ErrorCode::SUCCESS) {