mISDN: Use protocol to detect D-channel
Use protocol to detect D-channel not the channel number 0 Signed-off-by: Martin Bachem <m.bachem@gmx.de> Signed-off-by: Karsten Keil <kkeil@suse.de>
This commit is contained in:
committed by
Karsten Keil
parent
83a8a55b1d
commit
a9b61830cd
@@ -1964,7 +1964,8 @@ hfc_dctrl(struct mISDNchannel *ch, u_int cmd, void *arg)
|
|||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case OPEN_CHANNEL:
|
case OPEN_CHANNEL:
|
||||||
rq = arg;
|
rq = arg;
|
||||||
if (rq->adr.channel == 0)
|
if ((rq->protocol == ISDN_P_TE_S0) ||
|
||||||
|
(rq->protocol == ISDN_P_NT_S0))
|
||||||
err = open_dchannel(hc, ch, rq);
|
err = open_dchannel(hc, ch, rq);
|
||||||
else
|
else
|
||||||
err = open_bchannel(hc, rq);
|
err = open_bchannel(hc, rq);
|
||||||
|
Reference in New Issue
Block a user