mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-07 09:55:45 +00:00
auto-disconnect only ACL connections
This commit is contained in:
parent
cf288f1ce3
commit
eddad2ab2f
@ -931,6 +931,7 @@ static void l2cap_event_handler(uint8_t *packet, uint16_t size){
|
||||
// HCI Connection Timeouts
|
||||
case L2CAP_EVENT_TIMEOUT_CHECK:
|
||||
handle = READ_BT_16(packet, 2);
|
||||
if (gap_get_connection_type(handle) != GAP_CONNECTION_ACL) break;
|
||||
if (hci_authentication_active_for_handle(handle)) break;
|
||||
hci_con_used = 0;
|
||||
linked_list_iterator_init(&it, &l2cap_channels);
|
||||
|
Loading…
Reference in New Issue
Block a user