Never allocate transaction ID 7
According to GSM 04.07 11.2.3.1.3 , TID 7 is "reserved for future extensions". Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
ea3f674710
commit
b9f3dce0ae
|
@ -133,7 +133,7 @@ int trans_assign_trans_id(struct gsm_subscriber *subscr,
|
|||
used_tid_bitmask |= (1 << trans->transaction_id);
|
||||
}
|
||||
|
||||
for (i = 0; i <= 7; i++) {
|
||||
for (i = 0; i < 7; i++) {
|
||||
if ((used_tid_bitmask & (1 << (i | ti_flag))) == 0)
|
||||
return i | ti_flag;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue