OSDN Git Service

Use correct transport type while encrypting link
authorNitin Arora <niarora@codeaurora.org>
Tue, 9 Jun 2015 22:30:18 +0000 (15:30 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 6 Jul 2015 19:08:44 +0000 (12:08 -0700)
commit4f6c9b4f68d152baf7aa029cbe9b570994584101
treeeccc7cc01e8f83b428c716b4d48228822d8a41ae
parentd69bef4e26accb3ed85db244c442a4e028927ea8
Use correct transport type while encrypting link

This patch uses the transport type from the GATT event instead
of using the device type stored in NVRAM, to determine the
transport type while encrypting the link. The issue is seen
with dual mode devices, when the connection on LE transport
causes encryption request on the BR/EDR transport

Bug: 21652097
Change-Id: I895756f9c0048b5a559ea00f633b1100109e52b8
btif/include/btif_gatt_util.h
btif/src/btif_gatt_client.c
btif/src/btif_gatt_server.c
btif/src/btif_gatt_util.c