Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170702
b: refs/heads/master
c: 48bccd2
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Sailer authored and David S. Miller committed Oct 14, 2009
1 parent 4878cac commit 9ee0461
Show file tree
Hide file tree
Showing 2 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: 86a0a1e52d0918125ffc21475537a032f9a71d7c
refs/heads/master: 48bccd25df71f4f8177cb800f4b288222eb57761
7 changes: 3 additions & 4 deletions trunk/drivers/net/hamradio/baycom_epp.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,17 +595,16 @@ static int receive(struct net_device *dev, int cnt)
if (!(notbitstream & (0x1fc << j)))
state = 0;

/* not flag received */
else if ((bitstream & (0x1fe << j)) !=
(0x0fc << j)) {
/* flag received */
else if ((bitstream & (0x1fe << j)) == (0x0fc << j)) {
if (state)
do_rxpacket(dev);
bc->hdlcrx.bufcnt = 0;
bc->hdlcrx.bufptr = bc->hdlcrx.buf;
state = 1;
numbits = 7-j;
}
}
}

/* stuffed bit */
else if (unlikely((bitstream & (0x1f8 << j)) == (0xf8 << j))) {
Expand Down

0 comments on commit 9ee0461

Please sign in to comment.