Loading tools/rootcanal/model/controller/link_layer_controller.cc +3 −6 Original line number Diff line number Diff line Loading @@ -5420,8 +5420,7 @@ ErrorCode LinkLayerController::Disconnect(uint16_t handle, ErrorCode reason) { connections_.Disconnect( handle, [this](TaskId task_id) { CancelScheduledTask(task_id); }); SendDisconnectionCompleteEvent( handle, ErrorCode::CONNECTION_TERMINATED_BY_LOCAL_HOST); SendDisconnectionCompleteEvent(handle, reason); return ErrorCode::SUCCESS; } Loading @@ -5442,8 +5441,7 @@ ErrorCode LinkLayerController::Disconnect(uint16_t handle, ErrorCode reason) { connections_.Disconnect( sco_handle, [this](TaskId task_id) { CancelScheduledTask(task_id); }); SendDisconnectionCompleteEvent( sco_handle, ErrorCode::CONNECTION_TERMINATED_BY_LOCAL_HOST); SendDisconnectionCompleteEvent(sco_handle, reason); } SendLinkLayerPacket(model::packets::DisconnectBuilder::Create( Loading @@ -5458,8 +5456,7 @@ ErrorCode LinkLayerController::Disconnect(uint16_t handle, ErrorCode reason) { connections_.Disconnect( handle, [this](TaskId task_id) { CancelScheduledTask(task_id); }); SendDisconnectionCompleteEvent( handle, ErrorCode::CONNECTION_TERMINATED_BY_LOCAL_HOST); SendDisconnectionCompleteEvent(handle, ErrorCode(reason)); #ifdef ROOTCANAL_LMP if (is_br_edr) { ASSERT(link_manager_remove_link( Loading Loading
tools/rootcanal/model/controller/link_layer_controller.cc +3 −6 Original line number Diff line number Diff line Loading @@ -5420,8 +5420,7 @@ ErrorCode LinkLayerController::Disconnect(uint16_t handle, ErrorCode reason) { connections_.Disconnect( handle, [this](TaskId task_id) { CancelScheduledTask(task_id); }); SendDisconnectionCompleteEvent( handle, ErrorCode::CONNECTION_TERMINATED_BY_LOCAL_HOST); SendDisconnectionCompleteEvent(handle, reason); return ErrorCode::SUCCESS; } Loading @@ -5442,8 +5441,7 @@ ErrorCode LinkLayerController::Disconnect(uint16_t handle, ErrorCode reason) { connections_.Disconnect( sco_handle, [this](TaskId task_id) { CancelScheduledTask(task_id); }); SendDisconnectionCompleteEvent( sco_handle, ErrorCode::CONNECTION_TERMINATED_BY_LOCAL_HOST); SendDisconnectionCompleteEvent(sco_handle, reason); } SendLinkLayerPacket(model::packets::DisconnectBuilder::Create( Loading @@ -5458,8 +5456,7 @@ ErrorCode LinkLayerController::Disconnect(uint16_t handle, ErrorCode reason) { connections_.Disconnect( handle, [this](TaskId task_id) { CancelScheduledTask(task_id); }); SendDisconnectionCompleteEvent( handle, ErrorCode::CONNECTION_TERMINATED_BY_LOCAL_HOST); SendDisconnectionCompleteEvent(handle, ErrorCode(reason)); #ifdef ROOTCANAL_LMP if (is_br_edr) { ASSERT(link_manager_remove_link( Loading