[PATCH] osmo-bts[master]: LC15: osmo-bts-litecell15/l1_if.c: Alarm - Unknown MPH-INFO.req

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Minh-Quang Nguyen gerrit-no-reply at lists.osmocom.org
Mon Jun 13 13:29:18 UTC 2016


Review at  https://gerrit.osmocom.org/246

LC15: osmo-bts-litecell15/l1_if.c: Alarm - Unknown MPH-INFO.req

Change-Id: Iff984987ac0db06825afccfcb982d33f53c70a04
---
M src/osmo-bts-litecell15/l1_if.c
1 file changed, 11 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/46/246/1

diff --git a/src/osmo-bts-litecell15/l1_if.c b/src/osmo-bts-litecell15/l1_if.c
index 8193030..d60ea57 100644
--- a/src/osmo-bts-litecell15/l1_if.c
+++ b/src/osmo-bts-litecell15/l1_if.c
@@ -492,6 +492,8 @@
 	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 @@
 		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;
 	}
 

-- 
To view, visit https://gerrit.osmocom.org/246
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iff984987ac0db06825afccfcb982d33f53c70a04
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Minh-Quang Nguyen <minh-quang.nguyen at nutaq.com>



More information about the gerrit-log mailing list