summaryrefslogtreecommitdiffstats
path: root/sys/i4b
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-11-28 16:17:01 +0000
committerbrian <brian@FreeBSD.org>1999-11-28 16:17:01 +0000
commitd5bd70def6d5dc858c2bcce3d419fbdd12d2cd95 (patch)
tree385bd93847d87a7991c9892f65156888fabd87eb /sys/i4b
parent8181bafa69722265a1b66b045458c1ed3ba9511c (diff)
downloadFreeBSD-src-d5bd70def6d5dc858c2bcce3d419fbdd12d2cd95.zip
FreeBSD-src-d5bd70def6d5dc858c2bcce3d419fbdd12d2cd95.tar.gz
Call i4b_l4_drvrdisc, not i4b_l4_disconnect_ind to bring the link
down when the device is closed or carrier is removed. This solves the disconnect problems when using user-ppp over isdn. Suggested by: hm
Diffstat (limited to 'sys/i4b')
-rw-r--r--sys/i4b/driver/i4b_rbch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i4b/driver/i4b_rbch.c b/sys/i4b/driver/i4b_rbch.c
index 3c00673..0822569 100644
--- a/sys/i4b/driver/i4b_rbch.c
+++ b/sys/i4b/driver/i4b_rbch.c
@@ -305,7 +305,7 @@ i4brbchclose(dev_t dev, int flag, int fmt, struct proc *p)
int unit = minor(dev);
if (rbch_softc[unit].cd) {
- i4b_l4_disconnect_ind(rbch_softc[unit].cd);
+ i4b_l4_drvrdisc(BDRV_RBCH, unit);
rbch_softc[unit].cd = NULL;
}
rbch_softc[unit].sc_devstate &= ~ST_ISOPEN;
@@ -553,7 +553,7 @@ i4brbchioctl(dev_t dev, IOCTL_CMD_T cmd, caddr_t data, int flag, struct proc* p)
if(rbch_softc[unit].sc_devstate & ST_CONNECTED)
{
DBGL4(L4_RBCHDBG, "i4brbchioctl", ("unit %d, disconnecting for DTR down\n", unit));
- i4b_l4_disconnect_ind(rbch_softc[unit].cd);
+ i4b_l4_drvrdisc(BDRV_RBCH, unit);
}
break;
OpenPOWER on IntegriCloud