Commit 4de4ffaa authored by Kai Germaschewski's avatar Kai Germaschewski Committed by Kai Germaschewski

[PATCH] 2.5.3 ISDN charge hup fix

the appended patch by Igmar Palsenberg fixes the CHARGE_HUP functionality
(automatically hang up just before the next charging unit)
parent 77d21309
......@@ -369,8 +369,7 @@ isdn_net_autohup()
l->name, l->chargetime, l->chargeint);
isdn_net_hangup(&p->dev);
}
} else
isdn_net_hangup(&p->dev);
}
} else if (l->hupflags & ISDN_INHUP)
isdn_net_hangup(&p->dev);
}
......@@ -2872,7 +2871,7 @@ isdn_net_setcfg(isdn_net_ioctl_cfg * cfg)
else
lp->hupflags &= ~ISDN_INHUP;
if (cfg->chargeint > 10) {
lp->hupflags |= ISDN_CHARGEHUP | ISDN_HAVECHARGE | ISDN_MANCHARGE;
lp->hupflags |= ISDN_HAVECHARGE | ISDN_MANCHARGE;
lp->chargeint = cfg->chargeint * HZ;
}
if (cfg->p_encap != lp->p_encap) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment