bts: Count the rach frames we receive

This commit is contained in:
Holger Hans Peter Freyther
2013-10-27 10:50:35 +01:00
parent 90b87ea5e6
commit c1ae22694c
2 changed files with 9 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ static const struct rate_ctr_desc bts_ctr_description[] = {
{ "sba.timedout", "SBA Timeout "},
{ "llc.timeout", "Timedout Frames "},
{ "llc.dropped", "Dropped Frames "},
{ "rach.requests", "RACH requests "},
};
static const struct rate_ctr_group_desc bts_ctrg_desc = {
@@ -379,6 +380,8 @@ int BTS::rcv_rach(uint8_t ra, uint32_t Fn, int16_t qta)
int rc;
uint8_t plen;
rach_frame();
LOGP(DRLCMAC, LOGL_DEBUG, "MS requests UL TBF on RACH, so we provide "
"one:\n");
if ((ra & 0xf8) == 0x70) {
@@ -1105,6 +1108,9 @@ int gprs_rlcmac_pdch::rcv_control_block(
}
gprs_rlcmac_meas_rep(&ul_control_block->u.Packet_Measurement_Report);
break;
case MT_PACKET_UPLINK_DUMMY_CONTROL_BLOCK:
/* ignoring it. change the SI to not force sending these? */
break;
default:
bts()->decode_error();
LOGP(DRLCMAC, LOGL_NOTICE,