diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-11-30 15:47:14 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-11-30 15:18:22 +0000 |
commit | 56a7c671c48d42ebbedd1c5a83d3ee3301015a18 (patch) | |
tree | c797f99b2dcb6cc67cb53775b107ef1ca65d4c40 | |
parent | e117459e0d3d0670aa2cc60dfa3eafe81bbf11a9 (diff) |
BT/BlueZ: Do not react to "Insufficient Authorization" error.
Authorization in the context of ATT is purely a server-side feature that
the client cannot influence, so increasing the security level will not
help. The "Insufficient key size" error, however, should be handled.
Change-Id: I14b24700f3ebc365215eefb78b0aa8487fcbfd4d
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
-rw-r--r-- | src/bluetooth/qlowenergycontroller_bluez.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qlowenergycontroller_bluez.cpp b/src/bluetooth/qlowenergycontroller_bluez.cpp index 18d0f5a1..b1384fea 100644 --- a/src/bluetooth/qlowenergycontroller_bluez.cpp +++ b/src/bluetooth/qlowenergycontroller_bluez.cpp @@ -1723,9 +1723,9 @@ bool QLowEnergyControllerPrivate::increaseEncryptLevelfRequired(quint8 errorCode return false; switch (errorCode) { - case ATT_ERROR_INSUF_AUTHORIZATION: case ATT_ERROR_INSUF_ENCRYPTION: case ATT_ERROR_INSUF_AUTHENTICATION: + case ATT_ERROR_INSUF_ENCR_KEY_SIZE: if (!hciManager->isValid()) return false; if (!hciManager->monitorEvent(HciManager::EncryptChangeEvent)) |