summaryrefslogtreecommitdiffstats
path: root/src/direct_bt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-02-01 16:40:34 +0100
committerSven Gothel <[email protected]>2021-02-01 16:40:34 +0100
commit4ac527720adf7c75783d7c9fa5c1076c61f6f884 (patch)
tree8c972dfcf90a023e1b637a165a20c053f3a7d0ce /src/direct_bt
parentfe3caaf19c429a2fda0a747603e46c39dde4716c (diff)
BTDevice::setConnSecurity(..): Remove UNSET argument restrictions, allowing to reset values
Diffstat (limited to 'src/direct_bt')
-rw-r--r--src/direct_bt/BTDevice.cpp9
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(),