Bugfix for v110. Connectparamters where setup for sync ...

This commit is contained in:
Carsten Paeth 2000-11-14 08:43:07 +00:00
parent 8f9ff57a6d
commit 134a3fcff2
1 changed files with 12 additions and 7 deletions

View File

@ -6,6 +6,11 @@
* Copyright 1997 by Carsten Paeth (calle@calle.in-berlin.de)
*
* $Log$
* Revision 1.37 2000/11/01 14:05:02 calle
* - use module_init/module_exit from linux/init.h.
* - all static struct variables are initialized with "membername:" now.
* - avm_cs.c, let it work with newer pcmcia-cs.
*
* Revision 1.36 2000/06/26 15:13:41 keil
* features should be or'ed
*
@ -387,16 +392,16 @@ static inline __u32 b3prot(int l2, int l3)
}
}
static _cstruct b1config_sync_v110(__u16 rate)
static _cstruct b1config_async_v110(__u16 rate)
{
/* CAPI-Spec "B1 Configuration" */
static unsigned char buf[9];
buf[0] = 8; /* len */
/* maximum bitrate */
buf[1] = rate & 0xff; buf[2] = (rate >> 8) & 0xff;
buf[3] = buf[4] = 0; /* reserved, bits per character */
buf[5] = buf[6] = 0; /* reserved, parity */
buf[7] = buf[9] = 0; /* reserved, stop bits */
buf[3] = 8; buf[4] = 0; /* 8 bits per character */
buf[5] = 0; buf[6] = 0; /* parity none */
buf[7] = 0; buf[8] = 0; /* 1 stop bit */
return buf;
}
@ -411,11 +416,11 @@ static _cstruct b1config(int l2, int l3)
default:
return 0;
case ISDN_PROTO_L2_V11096:
return b1config_sync_v110(9600);
return b1config_async_v110(9600);
case ISDN_PROTO_L2_V11019:
return b1config_sync_v110(19200);
return b1config_async_v110(19200);
case ISDN_PROTO_L2_V11038:
return b1config_sync_v110(38400);
return b1config_async_v110(38400);
}
}