diff options
Diffstat (limited to 'zaptel.c')
-rwxr-xr-x | zaptel.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 */ |