aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio/baycom_epp.c
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
commitada47b5fe13d89735805b566185f4885f5a3f750 (patch)
tree644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/hamradio/baycom_epp.c
parent43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff)
parent3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff)
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/hamradio/baycom_epp.c')
-rw-r--r--drivers/net/hamradio/baycom_epp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/hamradio/baycom_epp.c b/drivers/net/hamradio/baycom_epp.c
index e344c84c0ef9..a3c0dc9d8b98 100644
--- a/drivers/net/hamradio/baycom_epp.c
+++ b/drivers/net/hamradio/baycom_epp.c
@@ -596,16 +596,16 @@ static int receive(struct net_device *dev, int cnt)
596 if (!(notbitstream & (0x1fc << j))) 596 if (!(notbitstream & (0x1fc << j)))
597 state = 0; 597 state = 0;
598 598
599 /* not flag received */ 599 /* flag received */
600 else if (!(bitstream & (0x1fe << j)) != (0x0fc << j)) { 600 else if ((bitstream & (0x1fe << j)) == (0x0fc << j)) {
601 if (state) 601 if (state)
602 do_rxpacket(dev); 602 do_rxpacket(dev);
603 bc->hdlcrx.bufcnt = 0; 603 bc->hdlcrx.bufcnt = 0;
604 bc->hdlcrx.bufptr = bc->hdlcrx.buf; 604 bc->hdlcrx.bufptr = bc->hdlcrx.buf;
605 state = 1; 605 state = 1;
606 numbits = 7-j; 606 numbits = 7-j;
607 }
608 } 607 }
608 }
609 609
610 /* stuffed bit */ 610 /* stuffed bit */
611 else if (unlikely((bitstream & (0x1f8 << j)) == (0xf8 << j))) { 611 else if (unlikely((bitstream & (0x1f8 << j)) == (0xf8 << j))) {