From: Andres More Date: Mon, 12 Jul 2010 19:28:32 +0000 (-0300) Subject: staging: vt6656: replaced U_CRC_LEN with ETH_FCS_LEN X-Git-Tag: firefly_0821_release~9833^2~1255^2~1^2~162 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=abad19d07627a8b67b441452b0450e178416d2d0;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/dpc.c b/drivers/staging/vt6656/dpc.c index 68c13aa56819..bc663e8de3bc 100644 --- a/drivers/staging/vt6656/dpc.c +++ b/drivers/staging/vt6656/dpc.c @@ -563,8 +563,8 @@ RXbBulkInProcessData ( // // RX OK // - //remove the CRC length - FrameSize -= U_CRC_LEN; + /* remove the FCS/CRC length */ + FrameSize -= ETH_FCS_LEN; if ( !(*pbyRsr & (RSR_ADDRBROAD | RSR_ADDRMULTI)) && // unicast address (IS_FRAGMENT_PKT((pbyFrame))) diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c index 6461d55e159f..b20cdc6bf851 100644 --- a/drivers/staging/vt6656/rxtx.c +++ b/drivers/staging/vt6656/rxtx.c @@ -3235,7 +3235,8 @@ bRelayPacketSend ( if (pDevice->wCurrentRate <= RATE_11M) 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 // and send the irp. diff --git a/drivers/staging/vt6656/tether.h b/drivers/staging/vt6656/tether.h index c278ef3dc741..fc46e516ff03 100644 --- a/drivers/staging/vt6656/tether.h +++ b/drivers/staging/vt6656/tether.h @@ -36,7 +36,6 @@ // // constants // -#define U_CRC_LEN 4 // #define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1) // Ethernet address string length