Commit b875e2fa authored by Kai Germaschewski's avatar Kai Germaschewski

ISDN: Fix isdnloop for transparent/V.110

For some reason, isdnloop didn't support the transparent encoding,
which is necessary for testing V.110. Testing also found a typo
causing an oops in isdn_common.c. Fixed.
parent 7007e717
...@@ -2724,7 +2724,7 @@ isdn_v110_data_req(struct isdn_slot *slot, struct sk_buff *skb) ...@@ -2724,7 +2724,7 @@ isdn_v110_data_req(struct isdn_slot *slot, struct sk_buff *skb)
dev_kfree_skb(skb); dev_kfree_skb(skb);
atomic_inc(&slot->iv110.v110use); atomic_inc(&slot->iv110.v110use);
slots->iv110.v110->skbuser++; slot->iv110.v110->skbuser++;
atomic_dec(&slot->iv110.v110use); atomic_dec(&slot->iv110.v110use);
/* For V.110 return unencoded data length */ /* For V.110 return unencoded data length */
......
...@@ -1335,6 +1335,9 @@ isdnloop_command(isdn_ctrl * c, isdnloop_card * card) ...@@ -1335,6 +1335,9 @@ isdnloop_command(isdn_ctrl * c, isdnloop_card * card)
case ISDN_PROTO_L2_HDLC: case ISDN_PROTO_L2_HDLC:
sprintf(cbuf, "%02d;BTRA\n", (int) (a & 255) + 1); sprintf(cbuf, "%02d;BTRA\n", (int) (a & 255) + 1);
break; break;
case ISDN_PROTO_L2_TRANS:
sprintf(cbuf, "%02d;BTRA\n", (int) (a & 255) + 1);
break;
default: default:
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment