mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-05 09:40:00 +00:00
send accept synchroous connection for SCO connections
This commit is contained in:
parent
a6d882ffdb
commit
5293c07213
@ -1127,9 +1127,9 @@ static void event_handler(uint8_t *packet, int size){
|
|||||||
link_type = packet[11];
|
link_type = packet[11];
|
||||||
log_info("Connection_incoming: %s, type %u", bd_addr_to_str(addr), link_type);
|
log_info("Connection_incoming: %s, type %u", bd_addr_to_str(addr), link_type);
|
||||||
addr_type = link_type == 1 ? BD_ADDR_TYPE_CLASSIC : BD_ADDR_TYPE_SCO;
|
addr_type = link_type == 1 ? BD_ADDR_TYPE_CLASSIC : BD_ADDR_TYPE_SCO;
|
||||||
conn = hci_connection_for_bd_addr_and_type(&addr, BD_ADDR_TYPE_CLASSIC);
|
conn = hci_connection_for_bd_addr_and_type(&addr, addr_type);
|
||||||
if (!conn) {
|
if (!conn) {
|
||||||
conn = create_connection_for_bd_addr_and_type(addr, BD_ADDR_TYPE_CLASSIC);
|
conn = create_connection_for_bd_addr_and_type(addr, addr_type);
|
||||||
}
|
}
|
||||||
if (!conn) {
|
if (!conn) {
|
||||||
// CONNECTION REJECTED DUE TO LIMITED RESOURCES (0X0D)
|
// CONNECTION REJECTED DUE TO LIMITED RESOURCES (0X0D)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user