fixed minor bug in dsp: if hardware features are disabled, we also must set feature flag to "received", else we wait until infinity for features

Modified Files:
 	mISDN/drivers/isdn/hardware/mISDN/dsp_core.c
This commit is contained in:
Andreas Eversberg 2007-04-03 18:34:38 +00:00
parent c4dd8765b4
commit f4a3d41cc4
1 changed files with 3 additions and 0 deletions

View File

@ -868,6 +868,9 @@ new_dsp(mISDNstack_t *st, mISDN_pid_t *pid)
if (!(dsp_options & DSP_OPT_NOHARDWARE)) {
ndsp->feature_tl.expires = jiffies + (HZ / 100);
add_timer(&ndsp->feature_tl);
// we don't need features, because we disabled them, so we must
// set the state to *_RECEIVED
ndsp->feature_state = FEAT_STATE_RECEIVED;
}
spin_lock_irqsave(&dsp_obj.lock, flags);
/* append and register */