summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctdm24xxp/xhfc.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-08-13 18:36:15 +0000
committerShaun Ruffell <sruffell@digium.com>2010-08-13 18:36:15 +0000
commitdbd50c8eb5dd7d0cdc386a7acc09423f1f448517 (patch)
tree081d823c57a3b92c4d7fca7178625ec07851cea0 /drivers/dahdi/wctdm24xxp/xhfc.c
parent8ac6d864dda3e3fbac3effdbebc6ca151c483285 (diff)
wctdm24xxp: Set the 'spantype' for the digital spans.
Defaults to "TE" but can be set by software to "NT" by dahdi_cfg. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9132 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm24xxp/xhfc.c')
-rw-r--r--drivers/dahdi/wctdm24xxp/xhfc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dahdi/wctdm24xxp/xhfc.c b/drivers/dahdi/wctdm24xxp/xhfc.c
index 2dd102d..00be877 100644
--- a/drivers/dahdi/wctdm24xxp/xhfc.c
+++ b/drivers/dahdi/wctdm24xxp/xhfc.c
@@ -2146,6 +2146,8 @@ static int b400m_set_ntte(struct b400m_span *bspan, int te_mode, int term_on)
int all_modes = 0, all_terms = 0;
int i;
+ bspan->wspan->span.spantype = (te_mode > 0) ? "TE" : "NT";
+
bspan->te_mode = te_mode;
bspan->term_on = term_on;