diff options
author | Martin Bachem <m.bachem@gmx.de> | 2008-09-03 18:08:30 +0200 |
---|---|---|
committer | Karsten Keil <kkeil@suse.de> | 2009-01-09 22:44:25 +0100 |
commit | a9b61830cd88a1d3d5e6d61adb737a3e20f7f0f5 (patch) | |
tree | adb7d120d5f57aefab2244289ceee4298898e237 /drivers/isdn/hardware/mISDN/hfcpci.c | |
parent | mISDN: Fixed more indexing bugs (diff) | |
download | linux-a9b61830cd88a1d3d5e6d61adb737a3e20f7f0f5.tar.xz linux-a9b61830cd88a1d3d5e6d61adb737a3e20f7f0f5.zip |
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>
Diffstat (limited to 'drivers/isdn/hardware/mISDN/hfcpci.c')
-rw-r--r-- | drivers/isdn/hardware/mISDN/hfcpci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c index 8461477a3ac0..37c2e19c3b00 100644 --- a/drivers/isdn/hardware/mISDN/hfcpci.c +++ b/drivers/isdn/hardware/mISDN/hfcpci.c @@ -1964,7 +1964,8 @@ hfc_dctrl(struct mISDNchannel *ch, u_int cmd, void *arg) switch (cmd) { case OPEN_CHANNEL: 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); else err = open_bchannel(hc, rq); |