diff options
author | Sven Gothel <[email protected]> | 2023-10-23 08:22:10 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-10-23 08:22:10 +0200 |
commit | 3dadb1e183a5ce8cb0ef071b7bdfc0c925589b9e (patch) | |
tree | 0c2b99d5dcb6dfc6537b935fef8677f5a46e2ebc /src | |
parent | d17582e5dc9e380a12ac54ea6ba154f46c468a21 (diff) |
GATT Server Auth: MgmtEvent: Add PASSKEY_NOTIFY -> MgmtEvtPasskeyNotify mapping
Diffstat (limited to 'src')
-rw-r--r-- | src/direct_bt/BTManager.cpp | 2 | ||||
-rw-r--r-- | src/direct_bt/MgmtTypes.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/direct_bt/BTManager.cpp b/src/direct_bt/BTManager.cpp index 5a44228a..bb1db682 100644 --- a/src/direct_bt/BTManager.cpp +++ b/src/direct_bt/BTManager.cpp @@ -488,13 +488,13 @@ next1: addMgmtEventCallback(-1, MgmtEvent::Opcode::PIN_CODE_REQUEST, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); addMgmtEventCallback(-1, MgmtEvent::Opcode::USER_CONFIRM_REQUEST, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); addMgmtEventCallback(-1, MgmtEvent::Opcode::USER_PASSKEY_REQUEST, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); + addMgmtEventCallback(-1, MgmtEvent::Opcode::PASSKEY_NOTIFY, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); addMgmtEventCallback(-1, MgmtEvent::Opcode::AUTH_FAILED, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); addMgmtEventCallback(-1, MgmtEvent::Opcode::DEVICE_FOUND, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); addMgmtEventCallback(-1, MgmtEvent::Opcode::DISCOVERING, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); addMgmtEventCallback(-1, MgmtEvent::Opcode::DEVICE_BLOCKED, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); addMgmtEventCallback(-1, MgmtEvent::Opcode::DEVICE_UNBLOCKED, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); addMgmtEventCallback(-1, MgmtEvent::Opcode::DEVICE_UNPAIRED, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); - addMgmtEventCallback(-1, MgmtEvent::Opcode::PASSKEY_NOTIFY, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); addMgmtEventCallback(-1, MgmtEvent::Opcode::NEW_IRK, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); addMgmtEventCallback(-1, MgmtEvent::Opcode::NEW_CSRK, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); addMgmtEventCallback(-1, MgmtEvent::Opcode::DEVICE_WHITELIST_ADDED, jau::bind_member(this, &BTManager::mgmtEventAnyCB)); diff --git a/src/direct_bt/MgmtTypes.cpp b/src/direct_bt/MgmtTypes.cpp index 41037d77..819958e5 100644 --- a/src/direct_bt/MgmtTypes.cpp +++ b/src/direct_bt/MgmtTypes.cpp @@ -450,6 +450,8 @@ std::unique_ptr<MgmtEvent> MgmtEvent::getSpecialized(const uint8_t * buffer, jau return std::make_unique<MgmtEvtUserConfirmRequest>(buffer, buffer_size); case MgmtEvent::Opcode::USER_PASSKEY_REQUEST: return std::make_unique<MgmtEvtUserPasskeyRequest>(buffer, buffer_size); + case MgmtEvent::Opcode::PASSKEY_NOTIFY: + return std::make_unique<MgmtEvtPasskeyNotify>(buffer, buffer_size); case Opcode::AUTH_FAILED: return std::make_unique<MgmtEvtAuthFailed>(buffer, buffer_size); case MgmtEvent::Opcode::DEVICE_FOUND: |