Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion system/gd/hci/le_scanning_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ constexpr uint8_t kDataStatusBits = 5;

// system properties
const std::string kLeRxPathLossCompProperty = "bluetooth.hardware.radio.le_rx_path_loss_comp_db";
const std::string kPropertyDisableApcfExtendedFeatures = "persist.sys.bt.le.disable_apcf_extended_features";
bool kDisableApcfExtendedFeatures = false;

const ModuleFactory LeScanningManager::Factory =
ModuleFactory([]() { return new LeScanningManager(); });
Expand Down Expand Up @@ -190,7 +192,9 @@ struct LeScanningManager::impl : public LeAddressManagerCallback {
api_type_ = ScanApiType::LEGACY;
}
is_filter_supported_ = controller_->IsSupported(OpCode::LE_ADV_FILTER);
if (is_filter_supported_) {
if (os::GetSystemProperty(kPropertyDisableApcfExtendedFeatures) == "1")
kDisableApcfExtendedFeatures = true;
if (is_filter_supported_ && !kDisableApcfExtendedFeatures) {
le_scanning_interface_->EnqueueCommand(
LeAdvFilterReadExtendedFeaturesBuilder::Create(),
module_handler_->BindOnceOn(this, &impl::on_apcf_read_extended_features_complete));
Expand Down