]> err.no Git - linux-2.6/blobdiff - drivers/bluetooth/hci_usb.c
fb_ddc: fix DDC lines quirk
[linux-2.6] / drivers / bluetooth / hci_usb.c
index 59b054810ed05878db71ef2aa2867bd0cfdd88a5..98a9cdeaffb67a8c9a435ec57ae78fa880200176 100644 (file)
@@ -691,15 +691,18 @@ static void hci_usb_rx_complete(struct urb *urb)
                                        urb->iso_frame_desc[i].offset,
                                        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, 
                                        urb->transfer_buffer + urb->iso_frame_desc[i].offset,
                                        urb->iso_frame_desc[i].actual_length);
+                       }
                }
 #else
                ;
 #endif
        } else {
+               husb->hdev->stat.byte_rx += count;
                err = hci_recv_fragment(husb->hdev, _urb->type, urb->transfer_buffer, count);
                if (err < 0) { 
                        BT_ERR("%s corrupted packet: type %d count %d",