diff options
author | Sven Gothel <[email protected]> | 2022-04-19 05:33:35 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-04-19 05:33:35 +0200 |
commit | 6c3451536ea6f468079349daec647d01354a3435 (patch) | |
tree | 70a24f1413ee5186f941815db708cc0c3b55a53d /.gitignore | |
parent | 913c928a6ae8397f95a566b8aefcac92d02e6727 (diff) |
BTAdapter Server: Offload waiting for client connection from BTAdapter::mgmtEvDeviceConnectedHCI() HCIHandler callback to BTDevice::processL2CAPSetup() dedicated thread
Waiting for the client connection on the HCIHandler callback and thread blocks upcoming events, e.g. disconnections etc.
Hence moving fetching and waiting for the client connection where it belongs, on the BTDevice's dedicated thread
performing the L2CAP setup for the client connection and optional SMP protocol before deviceReady().
Further, the fetch and wait method BTAdapter::get_l2cap_connection() also tests whether the device is still connected.
Timeout for waiting for a client connection after having announced the connection via HCI is 1 second.
Actually measured connection duration is 0 - 40ms.
Impact: Resolves disconnect issues using one BT5 not well-known working adapter involved.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions