bts: Count RACH Request with unexpected content

Change-Id: I86420b08a9a634ca2e1f5a1c7e66ec3d3c08ce0b
This commit is contained in:
Pau Espin 2021-11-02 17:20:59 +01:00 committed by pespin
parent 812a7d3fa3
commit 48df600bfa
2 changed files with 6 additions and 1 deletions

View File

@ -139,6 +139,7 @@ static const struct rate_ctr_desc bts_ctr_description[] = {
{ "rach:requests:11bit", "11BIT_RACH requests received"},
{ "rach:requests:one_phase", "One phase packet access with request for single TS UL"}, /* TS 52.402 B.2.1.49 */
{ "rach:requests:two_phase", "Single block packet request for two phase packet access"}, /* TS 52.402 B.2.1.49 */
{ "rach:requests:unexpected", "RACH Request with unexpected content received"},
{ "spb:uplink_first_segment", "First seg of UL SPB "},
{ "spb:uplink_second_segment", "Second seg of UL SPB "},
{ "spb:downlink_first_segment", "First seg of DL SPB "},
@ -896,8 +897,11 @@ int bts_rcv_rach(struct gprs_rlcmac_bts *bts, const struct rach_ind_params *rip)
/* Parse [EGPRS Packet] Channel Request from RACH.ind */
rc = parse_rach_ind(rip, &chan_req);
if (rc) /* Send RR Immediate Assignment Reject */
if (rc) {
bts_do_rate_ctr_inc(bts, CTR_RACH_REQUESTS_UNEXPECTED);
/* Send RR Immediate Assignment Reject */
goto send_imm_ass_rej;
}
if (chan_req.single_block) {
bts_do_rate_ctr_inc(bts, CTR_RACH_REQUESTS_TWO_PHASE);

View File

@ -131,6 +131,7 @@ enum {
CTR_RACH_REQUESTS_11BIT,
CTR_RACH_REQUESTS_ONE_PHASE,
CTR_RACH_REQUESTS_TWO_PHASE,
CTR_RACH_REQUESTS_UNEXPECTED,
CTR_SPB_UL_FIRST_SEGMENT,
CTR_SPB_UL_SECOND_SEGMENT,
CTR_SPB_DL_FIRST_SEGMENT,