cleanup: Bluetooth/A2DP code cleanup

This commit is contained in:
2026-06-21 15:01:37 +02:00
parent 4c8e1c3591
commit c8d8ed6ebe
6 changed files with 29 additions and 178 deletions
-8
View File
@@ -304,19 +304,11 @@ namespace Drivers::USB::Bluetooth::Hci {
// remote that holds a stale, un-clearable bond to our real address.
bool SetBdAddr(const uint8_t* addr);
// Lockless HCI-event trace (diagnostic). Reset before a connection attempt,
// dump afterwards from top-level to see the pairing/SSP event sequence.
void ResetEventTrace();
void DumpEventTrace();
// Send any queued pairing replies (IO-cap / user-confirm / link-key) with
// real confirmed transfers. Call from top-level (e.g. the connect loop),
// NOT from an event handler -- event handlers only enqueue.
void ProcessPendingCommands();
// Diagnostic: print ACL data-path counters (tx / txDone / rx / pending).
void DumpAclStats();
// ACL TX flow control: outstanding (un-acked) ACL packets, and the
// controller's ACL buffer count (Number-Of-Completed-Packets credits). The
// media writer throttles on these so it never overruns the controller.