fixed the issue iOS devices cannot initiate connection

to ESP32 while there is a BLE connection to this ESP32

Closes https://github.com/espressif/esp-idf/issues/6557
This commit is contained in:
Jin Cheng
2022-09-19 14:23:19 +08:00
parent 76834a767f
commit da44fc9cbe
3 changed files with 5 additions and 6 deletions
@@ -87,7 +87,8 @@ BOOLEAN l2c_link_hci_conn_req (BD_ADDR bd_addr)
if (p_lcb_cur->in_use) {
no_links = FALSE;
p_lcb->link_role = HCI_ROLE_MASTER;
// p_lcb->link_role = HCI_ROLE_MASTER;
p_lcb->link_role = HCI_ROLE_SLAVE;
break;
}
}