From cb00d3aa12a5dbf3212bdb7e9fa9766a5b99fc3f Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Sun, 24 Aug 2014 20:38:20 +0000 Subject: [PATCH] fix hci_number_free_acl_slots_for_handle to return num free classic slots if no le slots are available. Fixes issue #415 --- src/hci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index 92848248c..ac8b280fc 100644 --- a/src/hci.c +++ b/src/hci.c @@ -294,7 +294,10 @@ uint8_t hci_number_free_acl_slots_for_handle(hci_con_handle_t con_handle){ return free_slots_classic; default: - return free_slots_le; + if (hci_stack->le_acl_packets_total_num){ + return free_slots_le; + } + return free_slots_classic; } }