diff options
author | Sven Gothel <[email protected]> | 2020-11-17 21:26:54 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-11-17 21:26:54 +0100 |
commit | 4effbc00ce41dc6c7d2f1b7415dd0365286c51fd (patch) | |
tree | 66dfea56b6ce91a027c2260df242872bcc93c80e | |
parent | d4efb7d99dd2f320bd39f53872bd7b72ec3193cc (diff) |
DBTDevice::updatePairingState_locked(): Add FIXME note about PairingMode force update (initiator role)
-rw-r--r-- | src/direct_bt/DBTDevice.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/direct_bt/DBTDevice.cpp b/src/direct_bt/DBTDevice.cpp index 2ec838e5..7dd6d999 100644 --- a/src/direct_bt/DBTDevice.cpp +++ b/src/direct_bt/DBTDevice.cpp @@ -453,7 +453,8 @@ bool DBTDevice::updatePairingState_locked(SMPPairingState state, PairingMode& cu const std::lock_guard<std::mutex> lock(mtx_pairing); // RAII-style acquire and relinquish via destructor PairingMode mode = pairing_data.mode; if( pairing_data.state != state ) { - // Potentially force update PairingMode by forced state change + // Potentially force update PairingMode by forced state change, assuming being the initiator. + // FIXME: Initiator and responder role might need more specific determination and documentation. switch( state ) { case SMPPairingState::PASSKEY_EXPECTED: mode = PairingMode::PASSKEY_ENTRY_ini; |