[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1461742525-2748-3-git-send-email-petkan@mip-labs.com>
Date: Wed, 27 Apr 2016 10:35:25 +0300
From: Petko Manolov <petkan@...-labs.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, a1291762@...il.com,
Petko Manolov <petkan@...-labs.com>
Subject: [PATCH v2 2/2] pegasus: fixes reported packet length
According to ADM851x docs the ethernet packet is appended with 4
bytes, not 8. Fixing this to report (hopefully) the right amount
of data.
Signed-off-by: Petko Manolov <petkan@...-labs.com>
---
drivers/net/usb/pegasus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c
index f919e20..780c217 100644
--- a/drivers/net/usb/pegasus.c
+++ b/drivers/net/usb/pegasus.c
@@ -497,7 +497,7 @@ static void read_bulk_callback(struct urb *urb)
pkt_len = buf[count - 3] << 8;
pkt_len += buf[count - 4];
pkt_len &= 0xfff;
- pkt_len -= 8;
+ pkt_len -= 4;
}
/*
--
2.8.0.rc3
Powered by blists - more mailing lists