[Asterisk-cvs] zaptel wct4xxp.c,1.79,1.80
mattf at lists.digium.com
mattf at lists.digium.com
Wed Jul 27 17:59:20 CDT 2005
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv31199
Modified Files:
wct4xxp.c
Log Message:
Fix for dualspan data errors
Index: wct4xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- wct4xxp.c 26 Jul 2005 20:06:21 -0000 1.79
+++ wct4xxp.c 27 Jul 2005 22:05:47 -0000 1.80
@@ -2507,7 +2507,7 @@
printk("TE%dXXP: Launching card: %d\n", wc->numspans, wc->order);
/* Setup serial parameters and system interface */
- for (x=0;x<wc->numspans;x++)
+ for (x=0;x<4;x++)
t4_serial_setup(wc, x);
if (zt_register(&wc->tspans[0]->span, 0)) {
@@ -2649,7 +2649,7 @@
#endif
/* Allocate pieces we need here */
- for (x=0;x<wc->numspans;x++) {
+ for (x=0;x<4;x++) {
if (wc->t1e1 & (1 << x)) {
wc->tspans[x] = kmalloc(sizeof(struct t4_span) + sizeof(struct zt_chan) * 31, GFP_KERNEL);
if (wc->tspans[x]) {
More information about the svn-commits
mailing list