summaryrefslogtreecommitdiffstats
path: root/api/direct_bt/SMPHandler.hpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-11-09 04:38:52 +0100
committerSven Gothel <[email protected]>2020-11-09 04:38:52 +0100
commit61f50aa76019d8906dc334bd40bbb7d031a09c9e (patch)
treece60b1790c12681f39e4c4e0b622a3b1564989f0 /api/direct_bt/SMPHandler.hpp
parent28fd3a2ea5bdfcd9392f45b5760c0150dc8a7671 (diff)
MgmtTypes: Reorg MgmtMsg <- [MgmtCommand (w/ Opcode), MgmtEvent (w/ Opcode)]; Mark Opcode linux-version and TODO/FIXME; ...
Further - Update opcodes up until linux 5.9 - Add MgmtEvtControllerError - Add MgmtSetDiscoverableCmd - Sort all MgmtCommand + MgmtEvent in Opcode order - MgmtEvent::getSpecialized(): Sort by Opcode order, add MgmtEvtControllerError - SMPHandler.hpp: Add macro definition USE_LINUX_BT_SECURITY [0|1] - DBTManager::setMode() produces usable DBG_PRINT, drop setAdapterMode(..) - DBTManager::setDiscoverableCmd(): Added using MgmtSetDiscoverableCmd, used for DUAL | BREDR only - MgmtEvtCmdComplete::getCurrentSettings() added - DBTManager::setMode() + setDiscoverableCmd() updated given AdapterSetting current_setting on SUCCESS, using MgmtEvtCmdComplete::getCurrentSettings() - DBTManager::initAdapter() uses updated AdapterSetting current_setting if valid instead of refetching AdapterInfo via READ_INFO.
Diffstat (limited to 'api/direct_bt/SMPHandler.hpp')
-rw-r--r--api/direct_bt/SMPHandler.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/direct_bt/SMPHandler.hpp b/api/direct_bt/SMPHandler.hpp
index 814b2cd6..49c149e5 100644
--- a/api/direct_bt/SMPHandler.hpp
+++ b/api/direct_bt/SMPHandler.hpp
@@ -50,8 +50,10 @@
*/
#ifdef __linux__
#define SMP_SUPPORTED_BY_OS 0
+ #define USE_LINUX_BT_SECURITY 1
#else
#define SMP_SUPPORTED_BY_OS 1
+ #define USE_LINUX_BT_SECURITY 0
#endif
/**