hci: ignore upper 4 bits for HCI_EVENT_NUMBER_OF_COMPLETED_PACKETS

This commit is contained in:
Matthias Ringwald 2018-06-16 22:22:41 +02:00
parent 5d07396b24
commit 80117cebe7

View File

@ -1928,7 +1928,7 @@ static void event_handler(uint8_t *packet, int size){
case HCI_EVENT_NUMBER_OF_COMPLETED_PACKETS:{
int offset = 3;
for (i=0; i<packet[2];i++){
handle = little_endian_read_16(packet, offset);
handle = little_endian_read_16(packet, offset) & 0x0fff;
offset += 2;
uint16_t num_packets = little_endian_read_16(packet, offset);
offset += 2;