From bf16bc83ef15f0977f78496715c421e6c64435c2 Mon Sep 17 00:00:00 2001 From: Chienyuan Date: Tue, 1 Sep 2020 20:38:12 +0800 Subject: [PATCH] gd HCI: fix failed assertion about extended_properties Bug: 159815595 Tag: #gd-refactor Test: gd/cert/run --host Test: manual Change-Id: Ie910933ed1e9c9619fc0eddd03e41576513ec207 --- gd/hci/le_advertising_manager.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gd/hci/le_advertising_manager.cc b/gd/hci/le_advertising_manager.cc index c70211681..efb426227 100644 --- a/gd/hci/le_advertising_manager.cc +++ b/gd/hci/le_advertising_manager.cc @@ -317,6 +317,7 @@ struct LeAdvertisingManager::impl : public bluetooth::hci::LeAddressManagerCallb uint8_t legacy_properties = (config.connectable ? 0x1 : 0x00) | (config.scannable ? 0x2 : 0x00) | (config.directed ? 0x4 : 0x00) | (config.high_duty_directed_connectable ? 0x8 : 0x00); uint8_t extended_properties = (config.anonymous ? 0x20 : 0x00) | (config.include_tx_power ? 0x40 : 0x00); + extended_properties = extended_properties >> 5; le_advertising_interface_->EnqueueCommand( hci::LeSetExtendedAdvertisingParametersBuilder::Create( -- 2.11.0