mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
mISDN: Bugfix for layer2 fixed TEI mode
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 <[email protected]> Cc: <[email protected]> # 3.5.x Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d836200a1c
commit
2509933594
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue