OSDN Git Service

DO NOT MERGE Drop Bluetooth connection with weak encryption key
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 14 Feb 2019 11:44:06 +0000 (12:44 +0100)
committerJack He <siyuanh@google.com>
Wed, 27 Mar 2019 10:40:16 +0000 (03:40 -0700)
commit2dae274ab91f5105c752f825c993c97da88ae5d4
treeb1687bf9803c3ce4715101d8c92d05da8e6b2310
parenta360163739de84c3c425cbcdafd45b982e81e4b6
DO NOT MERGE Drop Bluetooth connection with weak encryption key

This patch requires Bluetooth chip to support HCI Read Encryption Key Size
command and will cause Bluetooth to crash if this command is not supported
on a device. Such device should not take this patch and should look for
alternative solution to drop Bluetooth connection with weak encryption key.

Bug: 124301137
Test: make
Change-Id: I28f83628bc5eeda4e0632dc594770d040386b5fc
(cherry picked from commit 398473b74ebab9a47bf6f0615460f3c44ca09269)
device/src/controller.cc
stack/btu/btu_hcif.cc
stack/hcic/hcicmds.cc
stack/include/btm_ble_api.h
stack/include/hcimsgs.h