mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'change/optimize_sniff_request_v5.1' into 'release/v5.1'
Change(bt/bluedroid): Limit sniff request when pending mode change event[backport 5.1] See merge request espressif/esp-idf!26053
This commit is contained in:
commit
02ea722492
@ -243,7 +243,8 @@ tBTM_STATUS BTM_SetPowerMode (UINT8 pm_id, BD_ADDR remote_bda, tBTM_PM_PWR_MD *p
|
||||
/* if mode == hold or pending, return */
|
||||
if ( (p_cb->state == BTM_PM_STS_HOLD) ||
|
||||
(p_cb->state == BTM_PM_STS_PENDING) ||
|
||||
(btm_cb.pm_pend_link_hdl != BTM_INVALID_HANDLE) ) { /* command pending */
|
||||
(btm_cb.pm_pend_link_hdl != BTM_INVALID_HANDLE) ||
|
||||
(p_cb->state & BTM_PM_STORED_MASK) ) { /* command pending */
|
||||
if (p_acl_cb->hci_handle != btm_cb.pm_pend_link_hdl) {
|
||||
/* set the stored mask */
|
||||
p_cb->state |= BTM_PM_STORED_MASK;
|
||||
|
Loading…
Reference in New Issue
Block a user