From f2f6aef019b9003bbd5ef22f9487de1576186962 Mon Sep 17 00:00:00 2001 From: Jin Cheng Date: Thu, 1 Dec 2022 10:16:45 +0800 Subject: [PATCH] correct the SR_mode selection when konw nothing about Peripheral --- components/bt/host/bluedroid/stack/l2cap/l2c_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/host/bluedroid/stack/l2cap/l2c_utils.c b/components/bt/host/bluedroid/stack/l2cap/l2c_utils.c index 06eebe80b25..35815fd1e3c 100644 --- a/components/bt/host/bluedroid/stack/l2cap/l2c_utils.c +++ b/components/bt/host/bluedroid/stack/l2cap/l2c_utils.c @@ -2383,7 +2383,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;