Loading system/gd/hci/acl_manager/le_impl.h +6 −1 Original line number Original line Diff line number Diff line Loading @@ -647,7 +647,7 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback { return; return; } } if (connect_list.empty()) { if (connect_list.empty()) { LOG_ERROR("Attempting to re-arm le connection state machine when filter accept list is empty"); LOG_INFO("Ignored request to re-arm le connection state machine when filter accept list is empty"); return; return; } } AddressWithType empty(Address::kEmpty, AddressType::RANDOM_DEVICE_ADDRESS); AddressWithType empty(Address::kEmpty, AddressType::RANDOM_DEVICE_ADDRESS); Loading Loading @@ -847,6 +847,11 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback { } } void cancel_connect(AddressWithType address_with_type) { void cancel_connect(AddressWithType address_with_type) { // Remove any alarms for this peer, if any if (create_connection_timeout_alarms_.find(address_with_type) != create_connection_timeout_alarms_.end()) { create_connection_timeout_alarms_.at(address_with_type).Cancel(); create_connection_timeout_alarms_.erase(address_with_type); } // the connection will be canceled by LeAddressManager.OnPause() // the connection will be canceled by LeAddressManager.OnPause() remove_device_from_connect_list(address_with_type); remove_device_from_connect_list(address_with_type); } } Loading Loading
system/gd/hci/acl_manager/le_impl.h +6 −1 Original line number Original line Diff line number Diff line Loading @@ -647,7 +647,7 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback { return; return; } } if (connect_list.empty()) { if (connect_list.empty()) { LOG_ERROR("Attempting to re-arm le connection state machine when filter accept list is empty"); LOG_INFO("Ignored request to re-arm le connection state machine when filter accept list is empty"); return; return; } } AddressWithType empty(Address::kEmpty, AddressType::RANDOM_DEVICE_ADDRESS); AddressWithType empty(Address::kEmpty, AddressType::RANDOM_DEVICE_ADDRESS); Loading Loading @@ -847,6 +847,11 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback { } } void cancel_connect(AddressWithType address_with_type) { void cancel_connect(AddressWithType address_with_type) { // Remove any alarms for this peer, if any if (create_connection_timeout_alarms_.find(address_with_type) != create_connection_timeout_alarms_.end()) { create_connection_timeout_alarms_.at(address_with_type).Cancel(); create_connection_timeout_alarms_.erase(address_with_type); } // the connection will be canceled by LeAddressManager.OnPause() // the connection will be canceled by LeAddressManager.OnPause() remove_device_from_connect_list(address_with_type); remove_device_from_connect_list(address_with_type); } } Loading