Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26a4a06e authored by Marcel Holtmann's avatar Marcel Holtmann
Browse files

[Bluetooth] Add missing stat.byte_rx counter modification



With the support for hci_recv_fragment() the call to increase the
stat.byte_rx counter got accidentally removed. This patch fixes it.

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 40ffbfad
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -691,15 +691,18 @@ static void hci_usb_rx_complete(struct urb *urb)
					urb->iso_frame_desc[i].offset,
					urb->iso_frame_desc[i].offset,
					urb->iso_frame_desc[i].actual_length);
					urb->iso_frame_desc[i].actual_length);
	
	
			if (!urb->iso_frame_desc[i].status)
			if (!urb->iso_frame_desc[i].status) {
				husb->hdev->stat.byte_rx += urb->iso_frame_desc[i].actual_length;
				hci_recv_fragment(husb->hdev, _urb->type, 
				hci_recv_fragment(husb->hdev, _urb->type, 
					urb->transfer_buffer + urb->iso_frame_desc[i].offset,
					urb->transfer_buffer + urb->iso_frame_desc[i].offset,
					urb->iso_frame_desc[i].actual_length);
					urb->iso_frame_desc[i].actual_length);
			}
			}
		}
#else
#else
		;
		;
#endif
#endif
	} else {
	} else {
		husb->hdev->stat.byte_rx += count;
		err = hci_recv_fragment(husb->hdev, _urb->type, urb->transfer_buffer, count);
		err = hci_recv_fragment(husb->hdev, _urb->type, urb->transfer_buffer, count);
		if (err < 0) { 
		if (err < 0) { 
			BT_ERR("%s corrupted packet: type %d count %d",
			BT_ERR("%s corrupted packet: type %d count %d",