auto-disconnect only ACL connections

This commit is contained in:
Matthias Ringwald 2015-11-11 11:52:36 +01:00
parent cf288f1ce3
commit eddad2ab2f

View File

@ -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);