Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85595
b: refs/heads/master
c: 9311657
h: refs/heads/master
i:
  85593: fedc98c
  85591: 8ce8712
v: v3
  • Loading branch information
Ben Dooks authored and Jeff Garzik committed Feb 11, 2008
1 parent d2272af commit 9de6f0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: a8cc21f64648073e443365d113c55755b92622a6
refs/heads/master: 931165739a75f88530d5b02cafaacf9bb6b66d87
13 changes: 7 additions & 6 deletions trunk/drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,8 @@ dm9000_timer(unsigned long data)
}

struct dm9000_rxhdr {
u16 RxStatus;
u8 RxPktReady;
u8 RxStatus;
u16 RxLen;
} __attribute__((__packed__));

Expand Down Expand Up @@ -908,7 +909,7 @@ dm9000_rx(struct net_device *dev)

(db->inblk)(db->io_data, &rxhdr, sizeof(rxhdr));

RxLen = rxhdr.RxLen;
RxLen = le16_to_cpu(rxhdr.RxLen);

/* Packet Status check */
if (RxLen < 0x40) {
Expand All @@ -920,17 +921,17 @@ dm9000_rx(struct net_device *dev)
PRINTK1("RST: RX Len:%x\n", RxLen);
}

if (rxhdr.RxStatus & 0xbf00) {
if (rxhdr.RxStatus & 0xbf) {
GoodPacket = false;
if (rxhdr.RxStatus & 0x100) {
if (rxhdr.RxStatus & 0x01) {
PRINTK1("fifo error\n");
dev->stats.rx_fifo_errors++;
}
if (rxhdr.RxStatus & 0x200) {
if (rxhdr.RxStatus & 0x02) {
PRINTK1("crc error\n");
dev->stats.rx_crc_errors++;
}
if (rxhdr.RxStatus & 0x8000) {
if (rxhdr.RxStatus & 0x80) {
PRINTK1("length error\n");
dev->stats.rx_length_errors++;
}
Expand Down

0 comments on commit 9de6f0b

Please sign in to comment.