Commit 48bccd25 authored by Thomas Sailer's avatar Thomas Sailer Committed by David S. Miller
Browse files

hamradio: Fix bit test correctly.

parent 86a0a1e5
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -595,9 +595,8 @@ static int receive(struct net_device *dev, int cnt)
					if (!(notbitstream & (0x1fc << j)))
					if (!(notbitstream & (0x1fc << j)))
						state = 0;
						state = 0;


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