diff options
author | Andre Eisenbach <eisenbach@google.com> | 2015-10-26 13:49:17 -0700 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-10-27 19:10:56 +0000 |
commit | 4f7c4f67320bbb35c85b478d2ac7aa29d732acca (patch) | |
tree | 11b6140a32a11d09aa7a9e632f6f3ece99808a4e /stack/btm | |
parent | b335ee9496e671bf0ef0ab28a5990c9a024ac06b (diff) | |
download | android_system_bt-4f7c4f67320bbb35c85b478d2ac7aa29d732acca.tar.gz android_system_bt-4f7c4f67320bbb35c85b478d2ac7aa29d732acca.tar.bz2 android_system_bt-4f7c4f67320bbb35c85b478d2ac7aa29d732acca.zip |
Check remote LMP version before enabling secure connections
Request remote version information for LE links when connecting and
ensure LMP version is >= 8 (Bluetooth 4.2) before setting the LinkKey
bits in the pairing request.
This is to ensure older remote devices do not get confused by the
additional bit(s) in the pairing request.
Bug: 25277879
Change-Id: I25424e541fa5244d8f522dffc62cdedc24f4f35b
Diffstat (limited to 'stack/btm')
-rw-r--r-- | stack/btm/btm_acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stack/btm/btm_acl.c b/stack/btm/btm_acl.c index a6e520a5e..05f665bc3 100644 --- a/stack/btm/btm_acl.c +++ b/stack/btm/btm_acl.c @@ -268,8 +268,8 @@ void btm_acl_created (BD_ADDR bda, DEV_CLASS dc, BD_NAME bdn, if (transport == BT_TRANSPORT_BR_EDR) { btsnd_hcic_read_rmt_clk_offset (p->hci_handle); - btsnd_hcic_rmt_ver_req (p->hci_handle); } + btsnd_hcic_rmt_ver_req (p->hci_handle); p_dev_rec = btm_find_dev_by_handle (hci_handle); #if (BLE_INCLUDED == TRUE) |