aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinh-Quang Nguyen <minh-quang.nguyen@nutaq.com>2016-09-07 09:54:36 -0400
committerMinh-Quang Nguyen <minh-quang.nguyen@nutaq.com>2016-09-07 09:54:36 -0400
commit1c80421ddc9a6c0c27e1d826cae24b291401d710 (patch)
treef1394b92e2c56993acdcda0ded1bdcfa2ef6c4d6
parent66a1786fcd9d252e8af975b35ad2f9fca91fec5a (diff)
LC15: Implementation of receiving unknown L1 SAP message alarm.
The alarm cause ID is manufacture-defined by NuRAN Wireless. Change-Id: Ieab57aff503f86cbcf7a91e088cb1a8ea790557f
-rw-r--r--src/osmo-bts-litecell15/lc15_l1_if.c3
-rw-r--r--src/pcu_l1_if.cpp12
2 files changed, 15 insertions, 0 deletions
diff --git a/src/osmo-bts-litecell15/lc15_l1_if.c b/src/osmo-bts-litecell15/lc15_l1_if.c
index f5c3667..da81ebc 100644
--- a/src/osmo-bts-litecell15/lc15_l1_if.c
+++ b/src/osmo-bts-litecell15/lc15_l1_if.c
@@ -226,6 +226,9 @@ static int handle_ph_data_ind(struct lc15l1_hdl *fl1h,
default:
LOGP(DL1IF, LOGL_NOTICE, "Rx PH-DATA.ind for unknown L1 SAPI %s\n",
get_value_string(lc15bts_l1sapi_names, data_ind->sapi));
+ memcpy(alarm_sig_data.spare, &data_ind->sapi, sizeof(unsigned int));
+ osmo_signal_dispatch(SS_L_GLOBAL, S_PCU_NM_RX_UNKN_L1_SAP_ALARM, &alarm_sig_data);
+
break;
}
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp
index 10c41e1..a9c817e 100644
--- a/src/pcu_l1_if.cpp
+++ b/src/pcu_l1_if.cpp
@@ -660,6 +660,18 @@ static int handle_pcu_fail_evt_rep_sig(unsigned int subsys, unsigned int signal,
PCU_NM_EVT_CAUSE_CRIT_OPEN_L1_FAIL,
sig_data->add_text);
break;
+
+ case S_PCU_NM_RX_UNKN_L1_SAP_ALARM:
+ memcpy(&res, sig_data->spare, sizeof(unsigned int));
+ snprintf(log_msg, 100, "PCU: Rx PH-DATA.ind for unknown L1 SAPI 0x%x\n", res);
+ 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_L1_MSG,
+ sig_data->add_text);
+ break;
#endif
case S_PCU_NM_NO_PDCH_ALARM:
rc = pcu_tx_nm_fail_evt(NM_EVT_PROC_FAIL,