aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-27 10:50:35 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:12 +0100
commitc1ae22694cef9a437aedaa5a359e058ea256dc0c (patch)
treedc31367e411730a4887727e20b6e2ad4446fe4d5
parent90b87ea5e6bf78b59e25e55a774b25a375738fae (diff)
bts: Count the rach frames we receive
-rw-r--r--src/bts.cpp6
-rw-r--r--src/bts.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index c00ab6a4..7ebbb405 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -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,
diff --git a/src/bts.h b/src/bts.h
index 259be205..50eb4341 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -159,6 +159,7 @@ public:
CTR_SBA_TIMEDOUT,
CTR_LLC_FRAME_TIMEDOUT,
CTR_LLC_FRAME_DROPPED,
+ CTR_RACH_REQUESTS,
};
BTS();
@@ -202,6 +203,7 @@ public:
void sba_timedout();
void timedout_frame();
void dropped_frame();
+ void rach_frame();
/*
* Below for C interface for the VTY
@@ -262,6 +264,7 @@ CREATE_COUNT_INLINE(sba_freed, CTR_SBA_FREED)
CREATE_COUNT_INLINE(sba_timedout, CTR_SBA_TIMEDOUT)
CREATE_COUNT_INLINE(timedout_frame, CTR_LLC_FRAME_TIMEDOUT);
CREATE_COUNT_INLINE(dropped_frame, CTR_LLC_FRAME_DROPPED);
+CREATE_COUNT_INLINE(rach_frame, CTR_RACH_REQUESTS);
#undef CREATE_COUNT_INLINE