From 0ede362f84ab57c0bff7f688b761d0db461fe79c Mon Sep 17 00:00:00 2001 From: wangmengyang Date: Thu, 5 Jul 2018 12:00:41 +0800 Subject: [PATCH] component/bt: bugfix of invalid SCO handle in HCI number_of_completed_packets event --- components/bt/bluedroid/stack/btm/btm_sco.c | 3 +-- components/bt/lib | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/bt/bluedroid/stack/btm/btm_sco.c b/components/bt/bluedroid/stack/btm/btm_sco.c index e04209aab..47e3483b9 100644 --- a/components/bt/bluedroid/stack/btm/btm_sco.c +++ b/components/bt/bluedroid/stack/btm/btm_sco.c @@ -319,9 +319,8 @@ void btm_sco_process_num_completed_pkts (UINT8 *p) STREAM_TO_UINT8 (num_handles, p); for (xx = 0; xx < num_handles; xx++) { STREAM_TO_UINT16 (handle, p); - handle &= 0x7ff; // walk around for bad handle bit mask from controller STREAM_TO_UINT16 (num_sent, p); - if ((sco_inx = btm_find_scb_by_handle(handle & 0x7ff)) == BTM_MAX_SCO_LINKS) { + if ((sco_inx = btm_find_scb_by_handle(handle)) == BTM_MAX_SCO_LINKS) { continue; } BTM_TRACE_DEBUG("%s, %d, %u", __FUNCTION__, handle, p_cb->xmit_window_size); //debug diff --git a/components/bt/lib b/components/bt/lib index 48b2459bc..69f3de001 160000 --- a/components/bt/lib +++ b/components/bt/lib @@ -1 +1 @@ -Subproject commit 48b2459bcb4b9b6d6c64b93a1b8c6c70e25dfbd7 +Subproject commit 69f3de0011e4d1ae278af34f73e28d98c551304a