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)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Tue, 16 Apr 2019 22:37:24 +0000 (22:37 +0000)
commitb44375235c43345f893a6399c7dbf46afad175e0
tree0656a3ae9e6df961682791c6f5ceb7e56f5bdcab
parent4852b459bd654bb0e52e1c7b46d3d147a43e1e04
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
Change-Id: Id4b6b4e765628397a79e6806f45c2cd27acebd5b
(cherry picked from commit e32d4aa7a4b02dd39e918b3b3efae0ccc60ef588)
device/src/controller.cc
stack/btu/btu_hcif.cc
stack/hcic/hcicmds.cc
stack/include/btm_ble_api.h
stack/include/hcimsgs.h