summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthew Fredrickson <creslin@digium.com>2008-09-04 21:42:29 +0000
committerMatthew Fredrickson <creslin@digium.com>2008-09-04 21:42:29 +0000
commit15200b498525b042565d0b9ac3f70d24ca29622c (patch)
tree673210aaa5387465f6e93aa7673b0a09db57a9ec /include
parent1bb465f6b105fb8430e6d13d736e161d57df48e2 (diff)
Some picky switches require the LSB to be 1 for 56k links
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4865 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/fasthdlc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dahdi/fasthdlc.h b/include/dahdi/fasthdlc.h
index 20beeb6..6151907 100644
--- a/include/dahdi/fasthdlc.h
+++ b/include/dahdi/fasthdlc.h
@@ -414,7 +414,7 @@ static inline int fasthdlc_tx_run_nocheck(struct fasthdlc_state *h)
h->bits -= 7;
h->data <<= 7;
- return b << 1;
+ return ((b & 0x7f) << 1) | 1;
} else {
b = h->data >> 24;
h->bits -= 8;