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:
Sylvain Munaut 2009-12-18 18:28:11 +01:00 committed by Holger Hans Peter Freyther
parent ea3f674710
commit b9f3dce0ae
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}