| // Copyright 2022 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "sco_connection.h" |
| |
| namespace bt::hci { |
| |
| ScoConnection::ScoConnection(hci_spec::ConnectionHandle handle, const DeviceAddress& local_address, |
| const DeviceAddress& peer_address, const fxl::WeakPtr<Transport>& hci) |
| : Connection(handle, local_address, peer_address, hci, |
| [handle, hci] { ScoConnection::OnDisconnectionComplete(handle, hci); }), |
| weak_ptr_factory_(this) { |
| // The connection is registered & unregistered with ScoDataChannel by sco::ScoConnection. |
| } |
| |
| void ScoConnection::OnDisconnectionComplete(hci_spec::ConnectionHandle handle, |
| const fxl::WeakPtr<Transport>& hci) { |
| // TODO(fxbug.dev/92293): Clear ScoDataChannel controller packet count. |
| } |
| |
| } // namespace bt::hci |