Loading system/gd/hci/le_advertising_manager.cc +34 −28 Original line number Diff line number Diff line Loading @@ -329,7 +329,8 @@ struct LeAdvertisingManager::impl : public bluetooth::hci::LeAddressManagerCallb set_parameters(id, config); auto address_policy = le_address_manager_->GetAddressPolicy(); if (config.own_address_type == OwnAddressType::RANDOM_DEVICE_ADDRESS) { switch (config.own_address_type) { case OwnAddressType::RANDOM_DEVICE_ADDRESS: if (address_policy == LeAddressManager::AddressPolicy::USE_NON_RESOLVABLE_ADDRESS || address_policy == LeAddressManager::AddressPolicy::USE_RESOLVABLE_ADDRESS) { AddressWithType address_with_type = le_address_manager_->GetAnotherAddress(); Loading @@ -354,9 +355,14 @@ struct LeAdvertisingManager::impl : public bluetooth::hci::LeAddressManagerCallb id, advertising_sets_[id].current_address.GetAddress()), module_handler_->BindOnce(impl::check_status<LeSetExtendedAdvertisingRandomAddressCompleteView>)); } } else { break; case OwnAddressType::PUBLIC_DEVICE_ADDRESS: advertising_sets_[id].current_address = AddressWithType(controller_->GetMacAddress(), AddressType::PUBLIC_DEVICE_ADDRESS); break; default: // For resolvable address types, set the Peer address and type, and the controller generates the address. LOG_ALWAYS_FATAL("Unsupported Advertising Type %s", OwnAddressTypeText(config.own_address_type).c_str()); } if (config.advertising_type == AdvertisingType::ADV_IND || config.advertising_type == AdvertisingType::ADV_NONCONN_IND) { Loading Loading
system/gd/hci/le_advertising_manager.cc +34 −28 Original line number Diff line number Diff line Loading @@ -329,7 +329,8 @@ struct LeAdvertisingManager::impl : public bluetooth::hci::LeAddressManagerCallb set_parameters(id, config); auto address_policy = le_address_manager_->GetAddressPolicy(); if (config.own_address_type == OwnAddressType::RANDOM_DEVICE_ADDRESS) { switch (config.own_address_type) { case OwnAddressType::RANDOM_DEVICE_ADDRESS: if (address_policy == LeAddressManager::AddressPolicy::USE_NON_RESOLVABLE_ADDRESS || address_policy == LeAddressManager::AddressPolicy::USE_RESOLVABLE_ADDRESS) { AddressWithType address_with_type = le_address_manager_->GetAnotherAddress(); Loading @@ -354,9 +355,14 @@ struct LeAdvertisingManager::impl : public bluetooth::hci::LeAddressManagerCallb id, advertising_sets_[id].current_address.GetAddress()), module_handler_->BindOnce(impl::check_status<LeSetExtendedAdvertisingRandomAddressCompleteView>)); } } else { break; case OwnAddressType::PUBLIC_DEVICE_ADDRESS: advertising_sets_[id].current_address = AddressWithType(controller_->GetMacAddress(), AddressType::PUBLIC_DEVICE_ADDRESS); break; default: // For resolvable address types, set the Peer address and type, and the controller generates the address. LOG_ALWAYS_FATAL("Unsupported Advertising Type %s", OwnAddressTypeText(config.own_address_type).c_str()); } if (config.advertising_type == AdvertisingType::ADV_IND || config.advertising_type == AdvertisingType::ADV_NONCONN_IND) { Loading