aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2012-07-15 19:30:41 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2012-07-15 19:30:41 +0200
commita9b94074932bff7e4390be52803cd3c5ad956c09 (patch)
treed88524e4f873b1922772291f360af9dcfff6bfc7
parentab18bab577f706b11fe6ebc3ad4ad2f128fc4d1c (diff)
Only select TLLI, if it is valid (and not unset)
-rw-r--r--src/gprs_rlcmac.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gprs_rlcmac.cpp b/src/gprs_rlcmac.cpp
index 8e10801..7273362 100644
--- a/src/gprs_rlcmac.cpp
+++ b/src/gprs_rlcmac.cpp
@@ -188,7 +188,7 @@ struct gprs_rlcmac_tbf *tbf_by_tlli(uint32_t tlli,
if (dir == GPRS_RLCMAC_UL_TBF) {
llist_for_each_entry(tbf, &gprs_rlcmac_ul_tbfs, list) {
if (tbf->state != GPRS_RLCMAC_RELEASING
- && tbf->tlli == tlli)
+ && tbf->tlli == tlli && tbf->tlli_valid)
return tbf;
}
} else {
@@ -793,8 +793,7 @@ int tbf_update(struct gprs_rlcmac_tbf *tbf)
return -EINVAL;
}
- if (tbf->tlli_valid)
- ul_tbf = tbf_by_tlli(tbf->tlli, GPRS_RLCMAC_UL_TBF);
+ ul_tbf = tbf_by_tlli(tbf->tlli, GPRS_RLCMAC_UL_TBF);
tbf_unlink_pdch(tbf);
rc = bts->alloc_algorithm(ul_tbf, tbf, bts->alloc_algorithm_curst);