Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205905
b: refs/heads/master
c: 020c0a9
h: refs/heads/master
i:
  205903: d9cbe5b
v: v3
  • Loading branch information
Andres More authored and Greg Kroah-Hartman committed Jul 22, 2010
1 parent bfbe858 commit 6eecf9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: abad19d07627a8b67b441452b0450e178416d2d0
refs/heads/master: 020c0a9a78f8d5215f09164f7e5c5252dea098f9
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6656/rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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))) {
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/vt6656/tether.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@
// 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)

Expand Down

0 comments on commit 6eecf9f

Please sign in to comment.