diff options
author | Sven Gothel <[email protected]> | 2023-10-23 09:36:32 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-10-23 09:36:32 +0200 |
commit | 10f4d305e56270f5bc06f609994c49ec07ba9205 (patch) | |
tree | de75c1a90af54437984e7198533edc2586d4b6de /src/direct_bt/BTDevice.cpp | |
parent | f25e6eb1d3c25ddd91bc249c3f84be1e5d483837 (diff) |
HCI resolvable functions: HCIHandler shall only report DBG messages; BTAdapter clear resolvable list at 1st init, BTDevice del from resolvable list at disconnect
Diffstat (limited to 'src/direct_bt/BTDevice.cpp')
-rw-r--r-- | src/direct_bt/BTDevice.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/direct_bt/BTDevice.cpp b/src/direct_bt/BTDevice.cpp index caab6c58..8d1a50e7 100644 --- a/src/direct_bt/BTDevice.cpp +++ b/src/direct_bt/BTDevice.cpp @@ -2307,6 +2307,15 @@ HCIStatusCode BTDevice::disconnect(const HCIStatusCode reason) noexcept { } exit: + { + // Start resolving from scratch + HCIStatusCode res2 = hci.le_del_from_resolv_list(addressAndType); + if( HCIStatusCode::SUCCESS != res2 ) { + jau::INFO_PRINT("BTDevice::disconnect: DEL FROM RESOLV LIST failed %s for %s", + to_string(res2).c_str(), toString().c_str()); + } + } + if( HCIStatusCode::SUCCESS != res ) { // In case of an already pulled or disconnected HCIHandler (e.g. power-off) // or in case the hci->disconnect() itself fails, |