diff options
author | Minh-Quang Nguyen <minh-quang.nguyen@nutaq.com> | 2016-06-10 12:55:11 -0400 |
---|---|---|
committer | Minh-Quang Nguyen <minh-quang.nguyen@nutaq.com> | 2016-06-13 09:24:36 -0400 |
commit | 317b367148e5aa9b7046777864a8587f0b760b6c (patch) | |
tree | 2bdb98ceb626828ae859883cac904fe67ef9dafc | |
parent | 03399d9ea4065faba1efb48df902a45d495a7532 (diff) |
LC15: osmo-bts-litecell15/l1_if.c: Alarm - Unknown MPH-INFO.req
Change-Id: Iff984987ac0db06825afccfcb982d33f53c70a04
-rw-r--r-- | src/osmo-bts-litecell15/l1_if.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/osmo-bts-litecell15/l1_if.c b/src/osmo-bts-litecell15/l1_if.c index 81930301..d60ea57a 100644 --- a/src/osmo-bts-litecell15/l1_if.c +++ b/src/osmo-bts-litecell15/l1_if.c @@ -492,6 +492,8 @@ static int mph_info_req(struct gsm_bts_trx *trx, struct msgb *msg, uint8_t chan_nr; struct gsm_lchan *lchan; int rc = 0; + char log_msg[100]; + struct gsm_failure_evt_rep failure_rep; switch (l1sap->u.info.type) { case PRIM_INFO_ACT_CIPH: @@ -532,8 +534,15 @@ static int mph_info_req(struct gsm_bts_trx *trx, struct msgb *msg, msgb_free(msg); break; default: - LOGP(DL1C, LOGL_NOTICE, "unknown MPH-INFO.req %d\n", - l1sap->u.info.type); + snprintf(log_msg, 100, "unknown MPH-INFO.req %d\n", l1sap->u.info.type); + LOGP(DL1C, LOGL_NOTICE,"%s", log_msg); + + failure_rep.event_type = NM_EVT_COMM_FAIL; + failure_rep.event_serverity = NM_SEVER_MAJOR; + failure_rep.cause_type = NM_PCAUSE_T_MANUF; + failure_rep.event_cause = NM_MM_EVT_MAJ_UKWN_MSG; + failure_rep.add_text = (char *)&log_msg; + oml_tx_failure_event_rep(&trx->mo, failure_rep); rc = -EINVAL; } |