define and use enum values for BS11 (or Siemens?) specific OML message types
diff --git a/include/openbsc/abis_nm.h b/include/openbsc/abis_nm.h
index f0bb33c..f374249 100644
--- a/include/openbsc/abis_nm.h
+++ b/include/openbsc/abis_nm.h
@@ -168,6 +168,27 @@
NM_MT_SET_ALARM_THRES,
NM_MT_SET_ALARM_THRES_ACK,
NM_MT_SET_ALARM_THRES_NACK,
+
+ NM_MT_BS11_RESET_RESOURCE = 0x74,
+
+ NM_MT_BS11_BEGIN_DB_TX = 0xa3,
+ NM_MT_BS11_BEGIN_DB_TX_ACK,
+ NM_MT_BS11_BEGIN_DB_TX_NACK,
+ NM_MT_BS11_END_DB_TX = 0xa6,
+ NM_MT_BS11_END_DB_TX_ACK,
+ NM_MT_BS11_END_DB_TX_NACK,
+ NM_MT_BS11_CREATE_OBJ = 0xa9,
+ NM_MT_BS11_CREATE_OBJ_ACK,
+ NM_MT_BS11_CREATE_OBJ_NACK,
+ NM_MT_BS11_DELETE_OBJ = 0xac,
+ NM_MT_BS11_DELETE_OBJ_ACK,
+ NM_MT_BS11_DELETE_OBJ_NACK,
+
+ NM_MT_BS11_DEACT_TRX1 = 0xd0,
+
+ NM_MT_BS11_RESTART = 0xe7,
+ NM_MT_BS11_DISCONNECT = 0xe9,
+ NM_MT_BS11_RECONNECT = 0xf1,
};
/* Section 9.2: Object Class */
@@ -178,6 +199,8 @@
NM_OC_BASEB_TRANSC,
NM_OC_CHANNEL,
/* RFU: 05-FE */
+ NM_OC_BS11 = 0xa3,
+
NM_OC_NULL = 0xff,
};
diff --git a/src/abis_nm.c b/src/abis_nm.c
index cdb6c5c..7298328 100644
--- a/src/abis_nm.c
+++ b/src/abis_nm.c
@@ -426,13 +426,13 @@
int abis_nm_reset_resource(struct gsm_bts *bts)
{
- return __simple_cmd(bts, 0x74);
+ return __simple_cmd(bts, NM_MT_BS11_RESET_RESOURCE);
}
int abis_nm_db_transmission(struct gsm_bts *bts, int begin)
{
if (begin)
- return __simple_cmd(bts, 0xA3);
+ return __simple_cmd(bts, NM_MT_BS11_BEGIN_DB_TX);
else
- return __simple_cmd(bts, 0xA6);
+ return __simple_cmd(bts, NM_MT_BS11_END_DB_TX);
}