summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/card_pri.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-07-28 10:30:54 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-07-28 10:30:54 +0000
commitac377557b23f9c62382ce8799f3843654153a59b (patch)
treed570ec886cb3498314f065675d493cb4b704392f /drivers/dahdi/xpp/card_pri.c
parent32e788fd2426bd51e4235cd3020a43f55bf29799 (diff)
Ignore Reg. 0x70 messages at E1.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9028 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/card_pri.c')
-rw-r--r--drivers/dahdi/xpp/card_pri.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dahdi/xpp/card_pri.c b/drivers/dahdi/xpp/card_pri.c
index 8ab41c0..2700b6f 100644
--- a/drivers/dahdi/xpp/card_pri.c
+++ b/drivers/dahdi/xpp/card_pri.c
@@ -2081,6 +2081,10 @@ static void process_cas_dchan(xpd_t *xpd, byte regnum, byte data_low)
if(regnum == REG_RS1_E)
return; /* Time slot 0: Ignored for E1 */
if(regnum < REG_RS2_E) {
+ /* Should not happen, but harmless. Ignore */
+ if (regnum == REG_RS1_E)
+ return;
+
XPD_NOTICE(xpd,
"%s: received register 0x%X in protocol %s. Ignore\n",
__FUNCTION__, regnum, pri_protocol_name(priv->pri_protocol));