staging: vt6656: replaced U_CRC_LEN with ETH_FCS_LEN
Removed custom macro with one from include/linux/if_ether.h. FCS is an Ethernet field that holds the CRC value. Signed-off-by: Andres More <more.andres@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8efe1ab3a9
commit
abad19d076
@@ -563,8 +563,8 @@ RXbBulkInProcessData (
|
|||||||
//
|
//
|
||||||
// RX OK
|
// RX OK
|
||||||
//
|
//
|
||||||
//remove the CRC length
|
/* remove the FCS/CRC length */
|
||||||
FrameSize -= U_CRC_LEN;
|
FrameSize -= ETH_FCS_LEN;
|
||||||
|
|
||||||
if ( !(*pbyRsr & (RSR_ADDRBROAD | RSR_ADDRMULTI)) && // unicast address
|
if ( !(*pbyRsr & (RSR_ADDRBROAD | RSR_ADDRMULTI)) && // unicast address
|
||||||
(IS_FRAGMENT_PKT((pbyFrame)))
|
(IS_FRAGMENT_PKT((pbyFrame)))
|
||||||
|
@@ -3235,7 +3235,8 @@ bRelayPacketSend (
|
|||||||
if (pDevice->wCurrentRate <= RATE_11M)
|
if (pDevice->wCurrentRate <= RATE_11M)
|
||||||
byPktType = PK_TYPE_11B;
|
byPktType = PK_TYPE_11B;
|
||||||
|
|
||||||
BytesToWrite = uDataLen + U_CRC_LEN;
|
BytesToWrite = uDataLen + ETH_FCS_LEN;
|
||||||
|
|
||||||
// Convert the packet to an usb frame and copy into our buffer
|
// Convert the packet to an usb frame and copy into our buffer
|
||||||
// and send the irp.
|
// and send the irp.
|
||||||
|
|
||||||
|
@@ -36,7 +36,6 @@
|
|||||||
//
|
//
|
||||||
// constants
|
// constants
|
||||||
//
|
//
|
||||||
#define U_CRC_LEN 4 //
|
|
||||||
#define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1)
|
#define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1)
|
||||||
// Ethernet address string length
|
// Ethernet address string length
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user