summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-03-01 23:19:13 +0000
committerShaun Ruffell <sruffell@digium.com>2010-03-01 23:19:13 +0000
commit9002cf71ae456b33b44fef8dacfc1a886430f583 (patch)
tree7184c3349238106513f6483554799393bbde4cf3
parent87963845a1bdb22e2ae6a74465a5a6408b1c0b0d (diff)
wctdm24xxp: Mark the robust module parameter as DEBUG only.
In testing this option didn't appear to function properly. Just mark it debug only so it's not part of the "official" interface in case there are some users of it out there that I'm not aware of. DAHDI-267. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8203 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--drivers/dahdi/wctdm24xxp/base.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c
index ff330aa..a640f94 100644
--- a/drivers/dahdi/wctdm24xxp/base.c
+++ b/drivers/dahdi/wctdm24xxp/base.c
@@ -221,7 +221,9 @@ static unsigned int battdebounce;
static unsigned int battalarm;
static unsigned int battthresh;
static int debug = 0;
+#ifdef DEBUG
static int robust = 0;
+#endif
static int lowpower = 0;
static int boostringer = 0;
static int fastringer = 0;
@@ -1787,8 +1789,10 @@ static void wctdm_fxs_off_hook(struct wctdm *wc, const int card)
break;
}
dahdi_hooksig(wc->aspan->span.chans[card], DAHDI_RXSIG_OFFHOOK);
+#ifdef DEBUG
if (robust)
wctdm_init_proslic(wc, card, 1, 0, 1);
+#endif
fxs->oldrxhook = 1;
}
@@ -5021,7 +5025,9 @@ module_param(debug, int, 0600);
module_param(fxovoltage, int, 0600);
module_param(loopcurrent, int, 0600);
module_param(reversepolarity, int, 0600);
+#ifdef DEBUG
module_param(robust, int, 0600);
+#endif
module_param(opermode, charp, 0600);
module_param(lowpower, int, 0600);
module_param(boostringer, int, 0600);