Index: dahdi-base.c =================================================================== --- dahdi-base.c (revision 4909) +++ dahdi-base.c (working copy) @@ -1518,8 +1519,8 @@ if (res) return res; - fasthdlc_init(&ms->rxhdlc, (chan->flags & DAHDI_FLAG_HDLC56) ? FASTHDLC_MODE_56 : FASTHDLC_MODE_64); - fasthdlc_init(&ms->txhdlc, (chan->flags & DAHDI_FLAG_HDLC56) ? FASTHDLC_MODE_56 : FASTHDLC_MODE_64); + fasthdlc_init(&ms->rxhdlc, (ms->flags & DAHDI_FLAG_HDLC56) ? FASTHDLC_MODE_56 : FASTHDLC_MODE_64); + fasthdlc_init(&ms->txhdlc, (ms->flags & DAHDI_FLAG_HDLC56) ? FASTHDLC_MODE_56 : FASTHDLC_MODE_64); ms->infcs = PPP_INITFCS; netif_start_queue(ztchan_to_dev(ms)); @@ -1623,7 +1624,7 @@ return kzalloc(sizeof(struct dahdi_hdlc), GFP_KERNEL); } -static inline print_debug_writebuf(struct dahdi_chan* ss, struct sk_buff *skb, +static inline void print_debug_writebuf(struct dahdi_chan* ss, struct sk_buff *skb, int oldbuf) { #ifdef CONFIG_DAHDI_DEBUG @@ -1697,7 +1698,7 @@ dev->trans_start = jiffies; stats->tx_packets++; stats->tx_bytes += ss->writen[oldbuf]; - print_debug_writebuf(ss, skb, outbug); + print_debug_writebuf(ss, skb, oldbuf); retval = 0; /* Free the SKB */ dev_kfree_skb_any(skb);