]> git.baikalelectronics.ru Git - kernel.git/commit
ASIX: Use only 11 bits of header for data size
authorMarek Vasut <marek.vasut@gmail.com>
Tue, 26 Jul 2011 16:44:47 +0000 (16:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jul 2011 05:39:31 +0000 (22:39 -0700)
commit30df351921112cf29fcd7208476ed6bc4b611a7f
treef7c87ac7a9f8c055a883c695ad8c8b0db336edd6
parent33ebe43f66529e14825ba4e1d0f63eff85408ba9
ASIX: Use only 11 bits of header for data size

The AX88772B uses only 11 bits of the header for the actual size. The other bits
are used for something else. This causes dmesg full of messages:

asix_rx_fixup() Bad Header Length

This patch trims the check to only 11 bits. I believe on older chips, the
remaining 5 top bits are unused.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix.c