OSDN Git Service

HOGP: Do not remove device from whitelist on encryption failure
authorAndre Eisenbach <eisenbach@google.com>
Tue, 4 Nov 2014 23:23:02 +0000 (15:23 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 4 Nov 2014 23:23:02 +0000 (15:23 -0800)
commitf37767a17b2d80828f7ac4fa170859cb9e2f0bc6
tree3fbc079bc8d33e4ae7964980b018305366f4475c
parente50c79337277f9da2c9cef52fd373bbc85df6255
HOGP: Do not remove device from whitelist on encryption failure

If the encryption times out during the re-connect process for a HOGP
device, the device is removed from the whitelist and thus will not
reconnect until it is added back to the list. On platforms that do not
have a way to reconnect to a device manually, this means the device will
never reconnect again until the stack is restarted.

This patch checks the reason for the encryption failure and does not
remove the device from the whitelist if the encryption failed to a non
authentication/key related error.

Bug: 18233442
Change-Id: Ifaec4a9224ff9281956715b38d34c2d7c3fecb01
bta/gatt/bta_gattc_act.c
bta/hh/bta_hh_int.h
bta/hh/bta_hh_le.c