summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
Diffstat (limited to 'zaptel.c')
-rwxr-xr-xzaptel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zaptel.c b/zaptel.c
index 8c7d2a7..4896944 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -45,6 +45,7 @@
#endif /* CONFIG_ZAPATA_NET */
#include <linux/ppp_defs.h>
#ifdef CONFIG_ZAPATA_PPP
+#include <linux/netdevice.h>
#include <linux/if.h>
#include <linux/if_ppp.h>
#endif
@@ -722,7 +723,7 @@ static void close_channel(struct zt_chan *chan)
chan->eventinidx = chan->eventoutidx = 0;
chan->flags &= ~(ZT_FLAG_LINEAR | ZT_FLAG_PPP);
- zt_set_law(chan,chan->deflaw);
+ zt_set_law(chan,0);
memset(chan->conflast, 0, sizeof(chan->conflast));
memset(chan->conflast1, 0, sizeof(chan->conflast1));
@@ -1621,7 +1622,7 @@ static int initialize_channel(struct zt_chan *chan)
chan->txgain = defgain;
chan->gainalloc = 0;
chan->eventinidx = chan->eventoutidx = 0;
- zt_set_law(chan,chan->deflaw);
+ zt_set_law(chan,0);
zt_hangup(chan);
/* Make sure that the audio flag is cleared on a clear channel */