aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-27 15:42:25 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:13 +0100
commit8021644e9de418c0c1c54c2fcc23238ab0683d35 (patch)
tree2dee64b0b8520b2f30db1639f40101dc74d88267 /src
parentec80f82824d39f4378670900bcc65cc51a90da4c (diff)
bts: Kill dead stores of the tlli/tfi, fix the log message again
The code meant to print the tfi and not the tlli. Update it.
Diffstat (limited to 'src')
-rw-r--r--src/bts.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index d4c5e27..f4764bd 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -1013,14 +1013,12 @@ void gprs_rlcmac_pdch::rcv_control_dl_ack_nack(Packet_Downlink_Ack_Nack_t *ack_n
void gprs_rlcmac_pdch::rcv_resource_request(Packet_Resource_Request_t *request, uint32_t fn)
{
- int8_t tfi = 0; /* must be signed */
- uint32_t tlli = 0;
struct gprs_rlcmac_tbf *tbf;
struct gprs_rlcmac_sba *sba;
int rc;
if (request->ID.UnionType) {
- tlli = request->ID.u.TLLI;
+ uint32_t tlli = request->ID.u.TLLI;
tbf = bts()->tbf_by_tlli(tlli, GPRS_RLCMAC_UL_TBF);
if (tbf) {
LOGP(DRLCMACUL, LOGL_NOTICE, "Got RACH from "
@@ -1076,24 +1074,22 @@ void gprs_rlcmac_pdch::rcv_resource_request(Packet_Resource_Request_t *request,
debug_diagram(bts->bts, tbf->diag, "Res. REQ");
return;
}
- tfi = tbf->tfi;
} else {
if (request->ID.u.Global_TFI.UnionType) {
- tfi = request->ID.u.Global_TFI.u.DOWNLINK_TFI;
+ int8_t tfi = request->ID.u.Global_TFI.u.DOWNLINK_TFI;
tbf = bts()->tbf_by_tfi(tfi, trx_no(), GPRS_RLCMAC_DL_TBF);
if (!tbf) {
- LOGP(DRLCMAC, LOGL_NOTICE, "PACKET RESSOURCE REQ unknown downlink TLLI=0x%08x\n", tlli);
+ LOGP(DRLCMAC, LOGL_NOTICE, "PACKET RESSOURCE REQ unknown downlink TFI=%d\n", tfi);
return;
}
} else {
- tfi = request->ID.u.Global_TFI.u.UPLINK_TFI;
+ int8_t tfi = request->ID.u.Global_TFI.u.UPLINK_TFI;
tbf = bts()->tbf_by_tfi(tfi, trx_no(), GPRS_RLCMAC_UL_TBF);
if (!tbf) {
- LOGP(DRLCMAC, LOGL_NOTICE, "PACKET RESSOURCE REQ unknown uplink TLLI=%d\n", tlli);
+ LOGP(DRLCMAC, LOGL_NOTICE, "PACKET RESSOURCE REQ unknown uplink TFI=%d\n", tfi);
return;
}
}
- tlli = tbf->tlli;
}
LOGP(DRLCMAC, LOGL_ERROR, "RX: [PCU <- BTS] %s TFI: %u TLLI: 0x%08x FIXME: Packet resource request\n", (tbf->direction == GPRS_RLCMAC_UL_TBF) ? "UL" : "DL", tbf->tfi, tbf->tlli);
}