diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-06-02 20:00:56 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-06-02 20:00:56 +0000 |
commit | 67a814e9f9797570b520ca7499bc82684dc481a0 (patch) | |
tree | cce8c3f9825ff4795ee555cb540f17012b69df67 /drivers | |
parent | 3b8411e60548bc8b77bb18290ef62c118120802d (diff) |
wct4xxp: Do not set maintstat in t4_clear_maint.
If we always set maintstat to DAHDI_MAINT_NONE, dahdi_base will lose
track of what it thinks the current state of the span is.
For example, if you run
$ dahdi_maint -s 1 --loopback localhost
When t4_clear_maint is called, the current maintenance mode state,
'maintstat', is set to DAHDI_MAINT_NONE. So the next time you call:
$ dahdi_maint -s 1 --loopback off
dahdi-base.c will believe that the user is trying to set the maintenance
state from DAHDI_MAINT_NONE to DAHDI_MAINT_NONE and will not actually do
anything.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9932 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index 68fe8b1..2233cdc 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -1737,7 +1737,6 @@ static int t4_clear_maint(struct dahdi_span *span) /* Clear loopup/loopdown signals on the line */ reg = __t4_framer_in(wc, span->offset, FMR5); __t4_framer_out(wc, span->offset, FMR5, (reg & ~(FMR5_XLU | FMR5_XLD))); - span->maintstat = DAHDI_MAINT_NONE; spin_unlock_irqrestore(&wc->reglock, flags); span->mainttimer = 0; |