Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=26a4a06e7ff2874154eb3f4b4ba0514dc563b100
Commit:     26a4a06e7ff2874154eb3f4b4ba0514dc563b100
Parent:     40ffbfad6bb79a99cc7627bdaca0ee22dec526f6
Author:     Marcel Holtmann <[EMAIL PROTECTED]>
AuthorDate: Sun Sep 9 08:39:27 2007 +0200
Committer:  Marcel Holtmann <[EMAIL PROTECTED]>
CommitDate: Sun Sep 9 08:39:27 2007 +0200

    [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: Marcel Holtmann <[EMAIL PROTECTED]>
---
 drivers/bluetooth/hci_usb.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/bluetooth/hci_usb.c b/drivers/bluetooth/hci_usb.c
index 59b0548..98a9cde 100644
--- a/drivers/bluetooth/hci_usb.c
+++ b/drivers/bluetooth/hci_usb.c
@@ -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",
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to