aboutsummaryrefslogtreecommitdiffstats
path: root/api/direct_bt/DBTAdapter.hpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-11-11 07:27:39 +0100
committerSven Gothel <[email protected]>2020-11-11 07:27:39 +0100
commitde68ce5dd59165ffd19344c0947ef6f88db05600 (patch)
tree31d3082ae7496557a81d5726c726a6ad1f063bd1 /api/direct_bt/DBTAdapter.hpp
parent2989216e981727a8e2e5b46b62e6d78b5f17c7c0 (diff)
HCITypes.hpp: Add HCIACLData incl l2cap_frame providing potential SMPPDUMsg (SMP) incl. facility in HCIHandler (read and callbacks)
As noted in commit 6f3e08562f4f990b579ff2540d25dac06beea15a, we can't connect directly to the L2CAP/SMP channel. However, it is possible to access the SMP messages through the HCI layer, grabing the ACL Data's L2CAP packets. The latter may expose an SMP (via CID). This finally allows us to put our SMPPDUMsg to use and hence provide a HCISMPSecurityReqCallback facility in HCIHandler.
Diffstat (limited to 'api/direct_bt/DBTAdapter.hpp')
-rw-r--r--api/direct_bt/DBTAdapter.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/direct_bt/DBTAdapter.hpp b/api/direct_bt/DBTAdapter.hpp
index 68000e5a..9c0163d5 100644
--- a/api/direct_bt/DBTAdapter.hpp
+++ b/api/direct_bt/DBTAdapter.hpp
@@ -254,6 +254,8 @@ namespace direct_bt {
bool mgmtEvDeviceDiscoveringAny(std::shared_ptr<MgmtEvent> e, const bool hciSourced) noexcept;
+ bool smpSecurityReqCallback(const EUI48& address, BDAddressType addressType, uint16_t handle, std::shared_ptr<const SMPPDUMsg> msg) noexcept;
+
void startDiscoveryBackground() noexcept;
void checkDiscoveryState() noexcept;