aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-27 11:19:13 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:12 +0100
commitcb5c49b5815d254f51d698d7faef67ec9fc24bf7 (patch)
tree52a5ca9a17d27fa05180184a8bd98934f068bfd1 /src
parent750ca67ce9c08e775caa70788686de82819b7bfb (diff)
bts: Work with the Packet_Measurement_Report_t
Diffstat (limited to 'src')
-rw-r--r--src/bts.cpp8
-rw-r--r--src/bts.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index b9dbaf8..638c7f0 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -1097,7 +1097,7 @@ void gprs_rlcmac_pdch::rcv_resource_request(RlcMacUplink_t *ul_control_block, ui
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);
}
-void gprs_rlcmac_pdch::rcv_measurement_report(RlcMacUplink_t *ul_control_block, uint32_t fn)
+void gprs_rlcmac_pdch::rcv_measurement_report(Packet_Measurement_Report_t *report, uint32_t fn)
{
struct gprs_rlcmac_sba *sba;
@@ -1108,10 +1108,10 @@ void gprs_rlcmac_pdch::rcv_measurement_report(RlcMacUplink_t *ul_control_block,
"block, but there is no resource request "
"scheduled!\n");
} else {
- bts()->timing_advance()->remember(ul_control_block->u.Packet_Measurement_Report.TLLI, sba->ta);
+ bts()->timing_advance()->remember(report->TLLI, sba->ta);
bts()->sba()->free_sba(sba);
}
- gprs_rlcmac_meas_rep(&ul_control_block->u.Packet_Measurement_Report);
+ gprs_rlcmac_meas_rep(report);
}
/* Received Uplink RLC control block. */
@@ -1134,7 +1134,7 @@ int gprs_rlcmac_pdch::rcv_control_block(
rcv_resource_request(ul_control_block, fn);
break;
case MT_PACKET_MEASUREMENT_REPORT:
- rcv_measurement_report(ul_control_block, fn);
+ rcv_measurement_report(&ul_control_block->u.Packet_Measurement_Report, fn);
break;
case MT_PACKET_UPLINK_DUMMY_CONTROL_BLOCK:
/* ignoring it. change the SI to not force sending these? */
diff --git a/src/bts.h b/src/bts.h
index f15e711..71eff30 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -84,7 +84,7 @@ private:
void rcv_control_ack(RlcMacUplink_t *, uint32_t fn);
void rcv_control_dl_ack_nack(RlcMacUplink_t *, uint32_t fn);
void rcv_resource_request(RlcMacUplink_t *t, uint32_t fn);
- void rcv_measurement_report(RlcMacUplink_t *t, uint32_t fn);
+ void rcv_measurement_report(Packet_Measurement_Report_t *t, uint32_t fn);
#endif
};