[PATCH] mISDNuser: mISDNcapid: fix B channel activation
Christoph Schulz <[email protected]> Sat, 11 Feb 2017 12:54:55 +0100
| Newsgroups | gmane.linux.isdn.i4l.user |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Always sends PH_ACTIVATE_REQ and not DL_ESTABLISH_REQ down the mISDN stack when opening a B-channel, as DL_ESTABLISH_REQ is only understood by layer-2, and B-channel management is done at layer-1. Signed-off-by: Christoph Schulz <[email protected]> - --- capi20/daemon.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/capi20/daemon.c b/capi20/daemon.c index b2ca095..321eb52 100644 - --- a/capi20/daemon.c +++ b/capi20/daemon.c @@ -1432,12 +1432,10 @@ int activate_bchannel(struct BInstance *bi) struct mISDNhead mh; mh.id = 1; - - if (bi->proto == ISDN_P_B_RAW) - - mh.prim = PH_ACTIVATE_REQ; - - else if (bi->proto == ISDN_P_NONE) + if (bi->proto == ISDN_P_NONE) return -EINVAL; else - - mh.prim = DL_ESTABLISH_REQ; + mh.prim = PH_ACTIVATE_REQ; ret = send(bi->fd, &mh, sizeof(mh), 0); if (ret != sizeof(mh)) { - -- 2.10.2 -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAlie+48ACgkQL11jCnyQ5OwcRwCdHzxzSoyHZVU+z520ZKUJKPTv UDwAninXkOl/24cv8qXFdpvRAqz10yv0 =w82/ -----END PGP SIGNATURE-----