hci: fix incorrect assert num completed packets handling introduced in 6ec1ca0, fixes #666

This commit is contained in:
Matthias Ringwald 2025-03-14 09:03:14 +01:00
parent b6ff3137b0
commit 87cebbe4ff
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Linux: Audio sink implementation for Linux ALSA
### Fixed
- HCI: fix incorrect assert/regression in num completed packets handling introduced in 6ec1ca0
- GAP: store link key for standard/non-SSP pairing
- SM: fix pairing as Peripheral with Extended Advertising and LE Advertisement Set Terminated after Connection Complete
- BNEP: emit channel opened with ERROR_CODE_REMOTE_USER_TERMINATED_CONNECTION if connection cannot be set up

View File

@ -683,8 +683,8 @@ uint16_t hci_number_free_acl_slots_for_connection_type(bd_addr_type_t address_ty
free_slots_le = hci_stack->le_acl_packets_total_num - num_packets_sent_le;
} else {
// otherwise, classic slots are used for LE, too
free_slots_classic -= num_packets_sent_le;
btstack_assert(free_slots_classic >= num_packets_sent_le);
free_slots_classic -= num_packets_sent_le;
}
switch (address_type){