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

Commit 189f64ae authored by Chienyuan's avatar Chienyuan
Browse files

GD: use extened advertising when controller supported

Bug: 229803847
Tag: #refactor
Test: gd/cert/run
Change-Id: I32da9d6d2f60b676c4f04389b8515039ab18880c
(cherry picked from commit 43e0dabf)
parent 398b5701
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ struct LeAdvertisingManager::impl : public bluetooth::hci::LeAddressManagerCallb
      enabled_sets_[i].advertising_handle_ = kInvalidHandle;
    }

    if (controller_->IsSupported(hci::OpCode::LE_SET_EXTENDED_ADVERTISING_PARAMETERS)) {
    if (controller_->SupportsBleExtendedAdvertising()) {
      advertising_api_type_ = AdvertisingApiType::EXTENDED;
    } else if (controller_->IsSupported(hci::OpCode::LE_MULTI_ADVT)) {
      advertising_api_type_ = AdvertisingApiType::ANDROID_HCI;