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
This commit is contained in:
brian 1999-11-28 16:17:01 +00:00
parent 8181bafa69
commit d5bd70def6

View File

@ -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;