Merge branch 'bugfix/correct_the_default_SR_mode_v4.4' into 'release/v4.4'

bugfix/correct the SR_mode selection when konw nothing about Peripheral's SR_mode (v4.4)

See merge request espressif/esp-idf!21520
This commit is contained in:
Jiang Jiang Jian 2022-12-22 19:37:27 +08:00
commit cfeccaa685

View File

@ -2414,7 +2414,7 @@ BOOLEAN l2cu_create_conn_after_switch (tL2C_LCB *p_lcb)
clock_offset = (UINT16)(p_inq_info->results.clock_offset);
} else {
/* No info known. Use default settings */
page_scan_rep_mode = HCI_PAGE_SCAN_REP_MODE_R1;
page_scan_rep_mode = HCI_PAGE_SCAN_REP_MODE_R2;
page_scan_mode = HCI_MANDATARY_PAGE_SCAN_MODE;
clock_offset = (p_dev_rec) ? p_dev_rec->clock_offset : 0;