From 5d14fa8f64a8576ae971ac31fdc899fd4fe97703 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 3 Nov 2015 21:24:12 +0100 Subject: [PATCH] fix warnings for unknown con handles in l2cap le run loop --- src/l2cap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/l2cap.c b/src/l2cap.c index fc8747307..26bea7b05 100644 --- a/src/l2cap.c +++ b/src/l2cap.c @@ -709,6 +709,7 @@ void l2cap_run(void){ hci_connections_get_iterator(&it); while(linked_list_iterator_has_next(&it)){ hci_connection_t * connection = (hci_connection_t *) linked_list_iterator_next(&it); + if (connection->address_type != BD_ADDR_TYPE_LE_PUBLIC && connection->address_type != BD_ADDR_TYPE_LE_RANDOM) continue; if (!hci_can_send_acl_packet_now(connection->con_handle)) continue; switch (connection->le_con_parameter_update_state){ case CON_PARAMETER_UPDATE_SEND_REQUEST: