diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2019-07-03 20:47:48 +0300 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2019-07-08 13:42:43 +0000 |
commit | ad7cf667faa49521482b1a73d7732479adc4a70f (patch) | |
tree | 606cfda63f37716daeebe63de4d7045047331580 /src/bluetooth | |
parent | a39f1357cc79cab9a0d7ea28986486b47b203422 (diff) |
LE/Android: better use of recently introduced AuthorizationError
when Android receives GATT_INSUFFICIENT_AUTHORIZATION or GATT_INSUFFICIENT_ENCRYPTION,
it breaks connection with fair reason GATT_CONN_TERMINATE_LOCAL_HOST,
which shadows the original GATT_INSUFFICIENT_ENCRYPTION from the user.
As we didn't see Android closing connection with GATT_CONN_TERMINATE_LOCAL_HOST
in cases other than described above, naively treat it like AuthorizationError
Change-Id: I43a19c9eaf793a595765850938d757a09324a545
Reviewed-by: Evgeniy Gagarin <eeiaao@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/bluetooth')
0 files changed, 0 insertions, 0 deletions