summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/tether.h
diff options
context:
space:
mode:
authorCharles Clément2010-05-18 20:30:20 +0200
committerGreg Kroah-Hartman2010-05-19 00:00:02 +0200
commitf4a68b9388c7f647ba2fd43faf69cad26ca03206 (patch)
treea3ec08906bfb5ab1ed56d51cedcec5ac8e8df4a7 /drivers/staging/vt6655/tether.h
parentStaging: vt6655: use ETH_DATA_LEN macro instead of custom one (diff)
downloadkernel-qcow2-linux-f4a68b9388c7f647ba2fd43faf69cad26ca03206.tar.gz
kernel-qcow2-linux-f4a68b9388c7f647ba2fd43faf69cad26ca03206.tar.xz
kernel-qcow2-linux-f4a68b9388c7f647ba2fd43faf69cad26ca03206.zip
Staging: vt6655: use ETH_FRAME_LEN macro instead of custom one
Replace custom maximum packet lenght definition MAX_PACKET_LEN by ETH_FRAME_LEN from <linux/if_ether.h>. Signed-off-by: Charles Clément <caratorn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6655/tether.h')
-rw-r--r--drivers/staging/vt6655/tether.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/vt6655/tether.h b/drivers/staging/vt6655/tether.h
index 5ade9b6b51c3..3c9acd7903a8 100644
--- a/drivers/staging/vt6655/tether.h
+++ b/drivers/staging/vt6655/tether.h
@@ -44,11 +44,8 @@
#define MIN_PACKET_LEN (MIN_DATA_LEN + ETH_HLEN)
// 60
// min total packet length (tx)
-#define MAX_PACKET_LEN (ETH_DATA_LEN + ETH_HLEN)
- // 1514
- // max total packet length (tx)
-#define MAX_LOOKAHEAD_SIZE MAX_PACKET_LEN
+#define MAX_LOOKAHEAD_SIZE ETH_FRAME_LEN
#define U_MULTI_ADDR_LEN 8 // multicast address length