Commit adde216b authored by Kai Germaschewski's avatar Kai Germaschewski

ISDN: Remove isdn_driver::online flags

They were never used except for passing the state to userspace,
but not used in any application I know of. If necessary, the information
can easily be recovered by looking at fi.state == ST_ACTIVE
parent 343d9ec0
...@@ -248,7 +248,6 @@ slot_bconn(struct fsm_inst *fi, int pr, void *arg) ...@@ -248,7 +248,6 @@ slot_bconn(struct fsm_inst *fi, int pr, void *arg)
fsm_change_state(fi, ST_SLOT_ACTIVE); fsm_change_state(fi, ST_SLOT_ACTIVE);
//FIXME drivers[di]->online |= (1 << (c->arg));
isdn_info_update(); isdn_info_update();
do_stat_cb(slot, ctrl); do_stat_cb(slot, ctrl);
...@@ -495,7 +494,6 @@ static char *drv_ev_str[] = { ...@@ -495,7 +494,6 @@ static char *drv_ev_str[] = {
/* Description of hardware-level-driver */ /* Description of hardware-level-driver */
struct isdn_driver { struct isdn_driver {
unsigned long online; /* Channel Online flags */
unsigned long flags; /* Misc driver Flags */ unsigned long flags; /* Misc driver Flags */
int locks; /* Number of locks */ int locks; /* Number of locks */
int channels; /* Number of channels */ int channels; /* Number of channels */
...@@ -1273,7 +1271,6 @@ isdn_status_callback(isdn_ctrl * c) ...@@ -1273,7 +1271,6 @@ isdn_status_callback(isdn_ctrl * c)
if (i < 0) if (i < 0)
return -1; return -1;
dbg_statcallb("DHUP: %d\n", i); dbg_statcallb("DHUP: %d\n", i);
drivers[di]->online &= ~(1 << (c->arg));
isdn_info_update(); isdn_info_update();
/* Signal hangup to network-devices */ /* Signal hangup to network-devices */
if (isdn_net_stat_callback(i, c)) if (isdn_net_stat_callback(i, c))
...@@ -1289,7 +1286,6 @@ isdn_status_callback(isdn_ctrl * c) ...@@ -1289,7 +1286,6 @@ isdn_status_callback(isdn_ctrl * c)
return -1; return -1;
dbg_statcallb("BCONN: %ld\n", c->arg); dbg_statcallb("BCONN: %ld\n", c->arg);
/* Signal B-channel-connect to network-devices */ /* Signal B-channel-connect to network-devices */
drivers[di]->online |= (1 << (c->arg));
isdn_info_update(); isdn_info_update();
if (isdn_net_stat_callback(i, c)) if (isdn_net_stat_callback(i, c))
break; break;
...@@ -1301,7 +1297,6 @@ isdn_status_callback(isdn_ctrl * c) ...@@ -1301,7 +1297,6 @@ isdn_status_callback(isdn_ctrl * c)
if (i < 0) if (i < 0)
return -1; return -1;
dbg_statcallb("BHUP: %d\n", i); dbg_statcallb("BHUP: %d\n", i);
drivers[di]->online &= ~(1 << (c->arg));
isdn_info_update(); isdn_info_update();
/* Signal hangup to network-devices */ /* Signal hangup to network-devices */
if (isdn_net_stat_callback(i, c)) if (isdn_net_stat_callback(i, c))
...@@ -1505,7 +1500,7 @@ isdn_statstr(void) ...@@ -1505,7 +1500,7 @@ isdn_statstr(void)
p = istatbuf + strlen(istatbuf); p = istatbuf + strlen(istatbuf);
for (i = 0; i < ISDN_MAX_DRIVERS; i++) { for (i = 0; i < ISDN_MAX_DRIVERS; i++) {
if (drivers[i]) { if (drivers[i]) {
sprintf(p, "%ld ", drivers[i]->online); sprintf(p, "0 ");
p = istatbuf + strlen(istatbuf); p = istatbuf + strlen(istatbuf);
} else { } else {
sprintf(p, "? "); sprintf(p, "? ");
......
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