diff options
author | Andreas Eversberg <andreas@eversberg.eu> | 2008-11-09 04:23:19 -0500 |
---|---|---|
committer | Karsten Keil <kkeil@suse.de> | 2009-01-09 16:44:29 -0500 |
commit | c3b3cdeba5a671ce5d0064c52c8a85f5b1e72e92 (patch) | |
tree | d027ebd6a1b4ddfc9358c641ea40241c5c9ee8a3 | |
parent | e314f89a62c1d74380455690325b1336ea0dca9d (diff) |
mISDN: Added missing create_l1() call
create_l1() was missed when changing mode to TE.
Signed-off-by: Andreas Eversberg <andreas@eversberg.eu>
Signed-off-by: Karsten Keil <kkeil@suse.de>
-rw-r--r-- | drivers/isdn/hardware/mISDN/hfcpci.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c index 019dbe9b082c..917bf41a293b 100644 --- a/drivers/isdn/hardware/mISDN/hfcpci.c +++ b/drivers/isdn/hardware/mISDN/hfcpci.c | |||
@@ -1937,6 +1937,11 @@ open_dchannel(struct hfc_pci *hc, struct mISDNchannel *ch, | |||
1937 | if (rq->protocol != ch->protocol) { | 1937 | if (rq->protocol != ch->protocol) { |
1938 | if (hc->hw.protocol == ISDN_P_TE_S0) | 1938 | if (hc->hw.protocol == ISDN_P_TE_S0) |
1939 | l1_event(hc->dch.l1, CLOSE_CHANNEL); | 1939 | l1_event(hc->dch.l1, CLOSE_CHANNEL); |
1940 | if (rq->protocol == ISDN_P_TE_S0) { | ||
1941 | err = create_l1(&hc->dch, hfc_l1callback); | ||
1942 | if (err) | ||
1943 | return err; | ||
1944 | } | ||
1940 | hc->hw.protocol = rq->protocol; | 1945 | hc->hw.protocol = rq->protocol; |
1941 | ch->protocol = rq->protocol; | 1946 | ch->protocol = rq->protocol; |
1942 | hfcpci_setmode(hc); | 1947 | hfcpci_setmode(hc); |