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
This commit is contained in:
wangmengyang 2018-11-06 12:02:18 +08:00
parent 3b92e85b30
commit cfef8291bb
3 changed files with 6 additions and 2 deletions

View 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,

@ -1 +1 @@
Subproject commit 3de0bcb653dfd734004949f72b696099d149e983
Subproject commit ff4154c5b9432479eaf01dd35d61d7450f25e606

View 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 );