diff options
author | Karsten Keil <keil@b1-systems.de> | 2012-08-04 00:14:25 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-15 07:52:46 -0700 |
commit | ea02ff4c40e462d62b9f6d2985bcf290b5148db9 (patch) | |
tree | 0391f4f5c25a51de3c3c63dda321e665e4ab4afe | |
parent | a555658b20781b8aff35ce660a4618a30b5f7120 (diff) | |
download | lwn-ea02ff4c40e462d62b9f6d2985bcf290b5148db9.tar.gz lwn-ea02ff4c40e462d62b9f6d2985bcf290b5148db9.zip |
mISDN: Bugfix for layer2 fixed TEI mode
commit 25099335944a23db75d4916644122c746684e093 upstream.
If a fixed TEI is used, the initial state of the layer 2 statmachine need to be
4 (TEI assigned). This was true only for Point to Point connections, but not
for the other fixed TEIs. It was not found before, because usually only the
TEI 0 is used as fixed TEI for PtP mode, but if you try X31 packet mode
connections with SAPI 16, TEI 1, it did fail.
Signed-off-by: Karsten Keil <keil@b1-systems.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/isdn/mISDN/layer2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/mISDN/layer2.c b/drivers/isdn/mISDN/layer2.c index 0dc8abca1407..949cabb88f1c 100644 --- a/drivers/isdn/mISDN/layer2.c +++ b/drivers/isdn/mISDN/layer2.c @@ -2222,7 +2222,7 @@ create_l2(struct mISDNchannel *ch, u_int protocol, u_long options, int tei, InitWin(l2); l2->l2m.fsm = &l2fsm; if (test_bit(FLG_LAPB, &l2->flag) || - test_bit(FLG_PTP, &l2->flag) || + test_bit(FLG_FIXED_TEI, &l2->flag) || test_bit(FLG_LAPD_NET, &l2->flag)) l2->l2m.state = ST_L2_4; else |