[PATCH] osmo-bts[master]: LC15: osmo-bts-litecell15/l1_if.c : Alarm - Unknown l1sap do...

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/247

LC15: osmo-bts-litecell15/l1_if.c : Alarm - Unknown l1sap downlink operation

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


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

diff --git a/src/osmo-bts-litecell15/l1_if.c b/src/osmo-bts-litecell15/l1_if.c
index d60ea57..6f06ede 100644
--- a/src/osmo-bts-litecell15/l1_if.c
+++ b/src/osmo-bts-litecell15/l1_if.c
@@ -554,6 +554,8 @@
 {
 	struct msgb *msg = l1sap->oph.msg;
 	int rc = 0;
+	char log_msg[100];
+	struct gsm_failure_evt_rep failure_rep;
 
 	switch (OSMO_PRIM_HDR(&l1sap->oph)) {
 	case OSMO_PRIM(PRIM_PH_DATA, PRIM_OP_REQUEST):
@@ -566,8 +568,16 @@
 		rc = mph_info_req(trx, msg, l1sap);
 		break;
 	default:
-		LOGP(DL1C, LOGL_NOTICE, "unknown prim %d op %d\n",
-			l1sap->oph.primitive, l1sap->oph.operation);
+		snprintf(log_msg, 100, "unknown prim %d op %d\n",
+				l1sap->oph.primitive, l1sap->oph.operation);
+		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/247
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia31720a495fb460a6449d89e02a29ef18503b885
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