]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
staging: vt6656: replaced MAX_DATA_LEN with ETH_DATA_LEN
authorAndres More <more.andres@gmail.com>
Mon, 12 Jul 2010 19:45:58 +0000 (16:45 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Jul 2010 18:43:04 +0000 (11:43 -0700)
Removed custom macro with one from include/linux/if_ether.h.

Signed-off-by: Andres More <more.andres@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vt6656/rxtx.c
drivers/staging/vt6656/tether.h

index b20cdc6bf851531a823e391d16fadcd38594bda7..eaead0cdae2a3dd0bc9a1200fbe99b6d62f82e82 100644 (file)
@@ -1466,7 +1466,7 @@ s_bPacketToWirelessUsb(
     memset(pTxBufHead, 0, sizeof(TX_BUFFER));
 
     // Get pkt type
-    if (ntohs(psEthHeader->wType) > MAX_DATA_LEN) {
+    if (ntohs(psEthHeader->wType) > ETH_DATA_LEN) {
         if (pDevice->dwDiagRefCount == 0) {
             cb802_1_H_len = 8;
         } else {
@@ -1701,7 +1701,7 @@ s_bPacketToWirelessUsb(
     }
 
     // 802.1H
-    if (ntohs(psEthHeader->wType) > MAX_DATA_LEN) {
+    if (ntohs(psEthHeader->wType) > ETH_DATA_LEN) {
         if (pDevice->dwDiagRefCount == 0) {
             if ( (psEthHeader->wType == TYPE_PKT_IPX) ||
                  (psEthHeader->wType == cpu_to_le16(0xF380))) {
index fc46e516ff034ee6d6c723875223b9b669112a3d..580f5bca1d1a76e7ccf2537730a7898d06ecd562 100644 (file)
                                         // Ethernet address string length
 
 #define MIN_DATA_LEN        46          // min data length
-#define MAX_DATA_LEN        1500        // max data length
 
 #define MIN_PACKET_LEN      (MIN_DATA_LEN + ETH_HLEN)
                                         // 60
                                         // min total packet length (tx)
-#define MAX_PACKET_LEN      (MAX_DATA_LEN + ETH_HLEN)
+#define MAX_PACKET_LEN      (ETH_DATA_LEN + ETH_HLEN)
                                         // 1514
                                         // max total packet length (tx)