aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinh-Quang Nguyen <minh-quang.nguyen@nutaq.com>2016-09-07 10:21:54 -0400
committerMinh-Quang Nguyen <minh-quang.nguyen@nutaq.com>2016-09-07 10:21:54 -0400
commit64d1cc25d0c885deec2b914eb6d89bc7798e7bc1 (patch)
tree757729b740ad6371c076c8a102f4d3eb5397c95f
parent7b883fffdcb0ade02717a22f7d6b9b1862134747 (diff)
LC15: Implementation of receiving unknown BTS message alarm.
The alarm cause ID is manufacture-defined by NuRAN Wireless. Change-Id: I0c86d987d9e36779ac5ffba184038b906effbc16
-rw-r--r--src/pcu_l1_if.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp
index aae6ce6..cdfce69 100644
--- a/src/pcu_l1_if.cpp
+++ b/src/pcu_l1_if.cpp
@@ -609,6 +609,8 @@ int pcu_rx(uint8_t msg_type, struct gsm_pcu_if *pcu_prim)
default:
LOGP(DL1IF, LOGL_ERROR, "Received unknwon PCU msg type %d\n",
msg_type);
+ alarm_sig_data.spare[0] = msg_type;
+ osmo_signal_dispatch(SS_L_GLOBAL, S_PCU_NM_RX_UNKN_MSG_ALARM, &alarm_sig_data);
rc = -EINVAL;
}
@@ -692,6 +694,18 @@ static int handle_pcu_fail_evt_rep_sig(unsigned int subsys, unsigned int signal,
PCU_NM_EVT_CAUSE_WARN_NO_PDCH_AVAIL,
"PCU no PDCH available\n");
break;
+
+ case S_PCU_NM_RX_UNKN_MSG_ALARM:
+ snprintf(log_msg, 100, "PCU: Rx unknown BTS message type 0x%x\n", sig_data->spare[0]);
+ sig_data->add_text = &log_msg[0];
+
+ rc = pcu_tx_nm_fail_evt(NM_EVT_PROC_FAIL,
+ NM_SEVER_MAJOR,
+ NM_PCAUSE_T_MANUF,
+ PCU_NM_EVT_CAUSE_MAJ_UKWN_BTS_MSG,
+ sig_data->add_text);
+ break;
+
default:
break;
}