From cfef8291bbb48117284a400ce872fec48f047480 Mon Sep 17 00:00:00 2001 From: wangmengyang Date: Tue, 6 Nov 2018 12:02:18 +0800 Subject: [PATCH] component/bt: bugfix of two issues of sniff mode in classic bluetooth 1. resolve the error in calculating sniff anchor point that result in connection supervision timeout 2. resolve the issue of user case that requires sniff attempt is larger than 0xff --- components/bt/bluedroid/stack/include/stack/hcimsgs.h | 5 ++++- components/bt/lib | 2 +- components/esp32/ld/esp32.rom.ld | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/bt/bluedroid/stack/include/stack/hcimsgs.h b/components/bt/bluedroid/stack/include/stack/hcimsgs.h index c2067a2f8..8ce1ad72d 100644 --- a/components/bt/bluedroid/stack/include/stack/hcimsgs.h +++ b/components/bt/bluedroid/stack/include/stack/hcimsgs.h @@ -275,7 +275,10 @@ BOOLEAN btsnd_hcic_hold_mode(UINT16 handle, UINT16 max_hold_period, #define HCI_HOLD_MODE_MIN_PER_OFF 4 /* Hold Mode */ -/* Sniff Mode */ +/** + * Sniff Mode + * sniff_attempt more than 0xFF is not supported + */ BOOLEAN btsnd_hcic_sniff_mode(UINT16 handle, UINT16 max_sniff_period, UINT16 min_sniff_period, diff --git a/components/bt/lib b/components/bt/lib index 3de0bcb65..ff4154c5b 160000 --- a/components/bt/lib +++ b/components/bt/lib @@ -1 +1 @@ -Subproject commit 3de0bcb653dfd734004949f72b696099d149e983 +Subproject commit ff4154c5b9432479eaf01dd35d61d7450f25e606 diff --git a/components/esp32/ld/esp32.rom.ld b/components/esp32/ld/esp32.rom.ld index b965b3d35..200389979 100644 --- a/components/esp32/ld/esp32.rom.ld +++ b/components/esp32/ld/esp32.rom.ld @@ -707,6 +707,7 @@ PROVIDE ( ld_acl_rx_no_sync = 0x4002fe78 ); PROVIDE ( ld_sco_modify = 0x40031778 ); PROVIDE ( lm_cmd_cmp_send = 0x40051838 ); PROVIDE ( ld_sco_frm_cbk = 0x400349dc ); +PROVIDE ( ld_acl_sniff_frm_cbk = 0x4003482c ); PROVIDE ( r_ld_acl_active_hop_types_get = 0x40036e10 ); PROVIDE ( r_ld_acl_afh_confirm = 0x40036d40 ); PROVIDE ( r_ld_acl_afh_prepare = 0x40036c84 );