[PATCH] osmo-bts[master]: LC15: osmo-bts-litecell15/l1_if.c: Alarm - DSP L1 is no long...

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:17 UTC 2016


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

LC15: osmo-bts-litecell15/l1_if.c: Alarm - DSP L1 is no longer sending primitives

Change-Id: Ic19e21c31a8f95c5e15c91cd886788ec4e83ec13
---
M src/osmo-bts-litecell15/oml.c
1 file changed, 24 insertions(+), 2 deletions(-)


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

diff --git a/src/osmo-bts-litecell15/oml.c b/src/osmo-bts-litecell15/oml.c
index 7aedee1..d4a8c75 100644
--- a/src/osmo-bts-litecell15/oml.c
+++ b/src/osmo-bts-litecell15/oml.c
@@ -782,10 +782,32 @@
 static void alive_timer_cb(void *data)
 {
 	struct lc15l1_hdl *fl1h = data;
+	char log_msg[100];
+	struct gsm_failure_evt_rep failure_rep;
+	int rc;
 
 	if (fl1h->alive_prim_cnt == 0) {
-		LOGP(DL1C, LOGL_FATAL, "DSP L1 is no longer sending primitives!\n");
-		exit(23);
+
+		if(fl1h->failure_rep_sent)
+			exit(23);
+
+		snprintf(log_msg, 100, "DSP L1 is no longer sending primitives!\n");
+		LOGP(DL1C, LOGL_FATAL,"%s", log_msg);
+
+		if( fl1h->phy_inst->trx ){
+			failure_rep.event_type = NM_EVT_PROC_FAIL;
+			failure_rep.event_serverity = NM_SEVER_CRITICAL;
+			failure_rep.cause_type = NM_PCAUSE_T_MANUF;
+			failure_rep.event_cause = NM_MM_EVT_CRIT_SW_FATAL;
+			failure_rep.add_text = (char *)&log_msg;
+
+			fl1h->phy_inst->trx->mo.obj_inst.trx_nr = fl1h->phy_inst->trx->nr;
+
+			rc = oml_tx_failure_event_rep(&fl1h->phy_inst->trx->mo, failure_rep);
+			if(!rc)
+				fl1h->failure_rep_sent = 1;
+		}
+
 	}
 	fl1h->alive_prim_cnt = 0;
 	osmo_timer_schedule(&fl1h->alive_timer, 5, 0);

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

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