OSDN Git Service

Reset LE encryption key size at LE disconnection only
authorNitin Arora <niarora@codeaurora.org>
Thu, 2 Jul 2015 21:08:39 +0000 (14:08 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 29 Jul 2015 07:51:45 +0000 (00:51 -0700)
commit82c8b9270ba962d5f271a833a3454baddbc063aa
treebbe26b8ea7abda0f78fbace35dadf6da73927e85
parentdab356e3b0573303840e63cbafb1065d57a11e2c
Reset LE encryption key size at LE disconnection only

This change checks the transport type on receiving the disconnection
and resets the encryption key size only if the LE disconnection
has taken place.
This fixes the issue where read request to characteristics that
require encryption,  fails after cross key derivation due to
disconnection of BR/EDR transport.

Bug: 22515016
Change-Id: If6aad91a628eabbb5a4b7f5c22812fe94d4c5db2
stack/btm/btm_sec.c