]> granicus.if.org Git - esp-idf/commitdiff
component/bt: bugfix of two issues of sniff mode in classic bluetooth
authorwangmengyang <wangmengyang@espressif.com>
Tue, 6 Nov 2018 04:02:18 +0000 (12:02 +0800)
committerwangmengyang <wangmengyang@espressif.com>
Tue, 6 Nov 2018 04:02:18 +0000 (12:02 +0800)
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
components/bt/lib
components/esp32/ld/esp32.rom.ld

index c2067a2f8a5dd3dac983adc8a99d53a93b0272e5..8ce1ad72d54ac828528dc8ba3de3a40fefe31bfb 100644 (file)
@@ -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,
index 3de0bcb653dfd734004949f72b696099d149e983..ff4154c5b9432479eaf01dd35d61d7450f25e606 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 3de0bcb653dfd734004949f72b696099d149e983
+Subproject commit ff4154c5b9432479eaf01dd35d61d7450f25e606
index b965b3d35c6552b0e917a2070b05684029238c5b..20038997931110e52b04d615ae490778a1156c86 100644 (file)
@@ -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 );