summaryrefslogtreecommitdiff
path: root/wcfxs.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcfxs.c')
-rwxr-xr-xwcfxs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wcfxs.c b/wcfxs.c
index d7fd1b3..4d29228 100755
--- a/wcfxs.c
+++ b/wcfxs.c
@@ -1366,7 +1366,7 @@ static int wcfxs_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long dat
return -EFAULT;
break;
case WCFXS_GET_REGS:
- if (wc->modtype == MOD_TYPE_FXS) {
+ if (wc->modtype[chan->chanpos - 1] == MOD_TYPE_FXS) {
for (x=0;x<NUM_INDIRECT_REGS;x++)
regs.indirect[x] = wcfxs_proslic_getreg_indirect(wc, chan->chanpos -1, x);
for (x=0;x<NUM_REGS;x++)