diff options
author | Sven Gothel <[email protected]> | 2021-02-01 16:40:34 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-02-01 16:40:34 +0100 |
commit | 4ac527720adf7c75783d7c9fa5c1076c61f6f884 (patch) | |
tree | 8c972dfcf90a023e1b637a165a20c053f3a7d0ce /src/direct_bt | |
parent | fe3caaf19c429a2fda0a747603e46c39dde4716c (diff) |
BTDevice::setConnSecurity(..): Remove UNSET argument restrictions, allowing to reset values
Diffstat (limited to 'src/direct_bt')
-rw-r--r-- | src/direct_bt/BTDevice.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/direct_bt/BTDevice.cpp b/src/direct_bt/BTDevice.cpp index bc01a65e..54ad22f4 100644 --- a/src/direct_bt/BTDevice.cpp +++ b/src/direct_bt/BTDevice.cpp @@ -1076,15 +1076,6 @@ SMPIOCapability BTDevice::getConnIOCapability() const noexcept { } bool BTDevice::setConnSecurity(const BTSecurityLevel sec_level, const SMPIOCapability io_cap) noexcept { - if( BTSecurityLevel::UNSET == sec_level ) { - DBG_PRINT("DBTAdapter::setConnSecurity: lvl %s, invalid value.", getBTSecurityLevelString(sec_level).c_str()); - return false; - } - if( SMPIOCapability::UNSET == io_cap ) { - DBG_PRINT("DBTDevice::setConnSecurity: io %s, invalid value.", getSMPIOCapabilityString(io_cap).c_str()); - return false; - } - if( !isValid() || isConnected || allowDisconnect ) { DBG_PRINT("DBTDevice::setConnSecurity: lvl %s, io %s failed, invalid state %s", getBTSecurityLevelString(sec_level).c_str(), |