mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-23 19:20:51 +00:00
hci: fix incorrect assert num completed packets handling introduced in 6ec1ca0, fixes #666
This commit is contained in:
parent
b6ff3137b0
commit
87cebbe4ff
@ -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
|
||||
|
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user