aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/hamradio/baycom_epp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/hamradio/baycom_epp.c b/drivers/net/hamradio/baycom_epp.c
index ee06a13ba0f6..b3cf95d76040 100644
--- a/drivers/net/hamradio/baycom_epp.c
+++ b/drivers/net/hamradio/baycom_epp.c
@@ -595,17 +595,16 @@ static int receive(struct net_device *dev, int cnt)
595 if (!(notbitstream & (0x1fc << j))) 595 if (!(notbitstream & (0x1fc << j)))
596 state = 0; 596 state = 0;
597 597
598 /* not flag received */ 598 /* flag received */
599 else if ((bitstream & (0x1fe << j)) != 599 else if ((bitstream & (0x1fe << j)) == (0x0fc << j)) {
600 (0x0fc << j)) {
601 if (state) 600 if (state)
602 do_rxpacket(dev); 601 do_rxpacket(dev);
603 bc->hdlcrx.bufcnt = 0; 602 bc->hdlcrx.bufcnt = 0;
604 bc->hdlcrx.bufptr = bc->hdlcrx.buf; 603 bc->hdlcrx.bufptr = bc->hdlcrx.buf;
605 state = 1; 604 state = 1;
606 numbits = 7-j; 605 numbits = 7-j;
607 }
608 } 606 }
607 }
609 608
610 /* stuffed bit */ 609 /* stuffed bit */
611 else if (unlikely((bitstream & (0x1f8 << j)) == (0xf8 << j))) { 610 else if (unlikely((bitstream & (0x1f8 << j)) == (0xf8 << j))) {