]> git.hungrycats.org Git - linux/commitdiff
ISDN: Fix isdnloop for transparent/V.110
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Tue, 29 Oct 2002 14:53:02 +0000 (08:53 -0600)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Tue, 29 Oct 2002 14:53:02 +0000 (08:53 -0600)
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.

drivers/isdn/i4l/isdn_common.c
drivers/isdn/isdnloop/isdnloop.c

index e46f2d5285bad3f23d4c9cdbd65dc36c1104581e..10058cb820a2c735a43ea42b2252d4cf4fc1e612 100644 (file)
@@ -2724,7 +2724,7 @@ isdn_v110_data_req(struct isdn_slot *slot, struct sk_buff *skb)
        dev_kfree_skb(skb);
 
        atomic_inc(&slot->iv110.v110use);
-       slots->iv110.v110->skbuser++;
+       slot->iv110.v110->skbuser++;
        atomic_dec(&slot->iv110.v110use);
 
        /* For V.110 return unencoded data length */
index 267e0e4a527b4860920cdea436176d46927e7017..ce799f4cb3a7b2b759389391b14d1fed397e8987 100644 (file)
@@ -1335,6 +1335,9 @@ isdnloop_command(isdn_ctrl * c, isdnloop_card * card)
                                                case ISDN_PROTO_L2_HDLC:
                                                        sprintf(cbuf, "%02d;BTRA\n", (int) (a & 255) + 1);
                                                        break;
+                                               case ISDN_PROTO_L2_TRANS:
+                                                       sprintf(cbuf, "%02d;BTRA\n", (int) (a & 255) + 1);
+                                                       break;
                                                default:
                                                        return -EINVAL;
                                        }