aboutsummaryrefslogtreecommitdiffstats
path: root/api/direct_bt/BTAdapter.hpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-01-17 07:49:28 +0100
committerSven Gothel <[email protected]>2022-01-17 07:49:28 +0100
commitfb9b859897a16108cb9b6a66ca8f675b94957935 (patch)
tree62f21d66f86b678575529f8f46b4c972b4009ee5 /api/direct_bt/BTAdapter.hpp
parentbfffaadcd49ee2ced2fa03bdacf0f987c1f9dd0c (diff)
BTAdapter::l2cap_att_srv: Have l2cap_service start/stop open and close the L2CAPServer ..
.. otherwise a generally open L2CAPServer with bound server address and CID occupies L2CAP in general hence blocks non-server (BTRole::Master) utilization.
Diffstat (limited to 'api/direct_bt/BTAdapter.hpp')
-rw-r--r--api/direct_bt/BTAdapter.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/api/direct_bt/BTAdapter.hpp b/api/direct_bt/BTAdapter.hpp
index dbecd27f..40e6b9cb 100644
--- a/api/direct_bt/BTAdapter.hpp
+++ b/api/direct_bt/BTAdapter.hpp
@@ -488,12 +488,14 @@ namespace direct_bt {
bool addSMPKeyBin(const SMPKeyBinRef& key, const bool write_file) noexcept;
bool removeSMPKeyBin(BDAddressAndType const & remoteAddress, const bool remove_file) noexcept;
- jau::service_runner l2cap_service;
L2CAPServer l2cap_att_srv;
+ jau::service_runner l2cap_service;
std::unique_ptr<L2CAPComm> l2cap_att;
std::mutex mtx_l2cap_att;
std::condition_variable cv_l2cap_att;
void l2capServerWork(jau::service_runner& sr);
+ void l2capServerInit(jau::service_runner& sr);
+ void l2capServerEnd(jau::service_runner& sr);
bool mgmtEvNewSettingsMgmt(const MgmtEvent& e) noexcept;
void updateAdapterSettings(const bool off_thread, const AdapterSetting new_settings, const bool sendEvent, const uint64_t timestamp) noexcept;