projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86a0a1e
)
hamradio: Fix bit test correctly.
author
Thomas Sailer
<
[email protected]
>
Wed, 14 Oct 2009 22:15:24 +0000
(15:15 -0700)
committer
David S. Miller
<
[email protected]
>
Wed, 14 Oct 2009 23:57:17 +0000
(16:57 -0700)
Signed-off-by: Thomas Sailer <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/hamradio/baycom_epp.c
patch
|
blob
|
history
diff --git
a/drivers/net/hamradio/baycom_epp.c
b/drivers/net/hamradio/baycom_epp.c
index ee06a13ba0f6fc1c5d0d38441ad52ffdf3fca110..b3cf95d760406bf49343b5177ecfe694142ab317 100644
(file)
--- 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)
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))) {