diff options
Diffstat (limited to 'stack/btm/btm_acl.c')
-rw-r--r-- | stack/btm/btm_acl.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/stack/btm/btm_acl.c b/stack/btm/btm_acl.c index 049fbe85d..a567cbdab 100644 --- a/stack/btm/btm_acl.c +++ b/stack/btm/btm_acl.c @@ -976,15 +976,16 @@ void btm_read_remote_version_complete (UINT8 *p) UINT16 handle; int xx; BTM_TRACE_DEBUG ("btm_read_remote_version_complete"); + STREAM_TO_UINT8 (status, p); - if (status == HCI_SUCCESS) - { - STREAM_TO_UINT16 (handle, p); + STREAM_TO_UINT16 (handle, p); - /* Look up the connection by handle and copy features */ - for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_acl_cb++) + /* Look up the connection by handle and copy features */ + for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_acl_cb++) + { + if ((p_acl_cb->in_use) && (p_acl_cb->hci_handle == handle)) { - if ((p_acl_cb->in_use) && (p_acl_cb->hci_handle == handle)) + if (status == HCI_SUCCESS) { STREAM_TO_UINT8 (p_acl_cb->lmp_version, p); STREAM_TO_UINT16 (p_acl_cb->manufacturer, p); @@ -995,8 +996,11 @@ void btm_read_remote_version_complete (UINT8 *p) BTM_TRACE_WARNING ("btm_read_remote_version_complete lmp_version %d manufacturer %d lmp_subversion %d", p_acl_cb->lmp_version,p_acl_cb->manufacturer, p_acl_cb->lmp_subversion); btm_read_remote_features (p_acl_cb->hci_handle); - break; } + + if (p_acl_cb->transport == BT_TRANSPORT_LE) + l2cble_notify_le_connection (p_acl_cb->remote_addr); + break; } } } |