aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-09-15 04:56:01 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-09-15 05:13:11 +0700
commit9d9d9e2f27ebe0b4132f125dbc81197f77d752ea (patch)
treed857fec5bb2b2c6b76be480f440f7e47034a35c3
parentoml: refactor generation of Get Attribute Response (diff)
downloadOsmoBTS-9d9d9e2f27ebe0b4132f125dbc81197f77d752ea.tar.xz
OsmoBTS-9d9d9e2f27ebe0b4132f125dbc81197f77d752ea.zip
oml: oml_tx_attr_resp(): handle common nm_state attributes
These attributes are listed in 3GPP TS 52.021, Table 2/GSM 12.21. Many attributes are still unhandled, but at least something. Change-Id: I94702c503fea5b42d84673ccd7065c9323b733b8 Related: OS#4505
-rw-r--r--src/common/oml.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/oml.c b/src/common/oml.c
index 7aefe086..85ec5d7a 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -230,6 +230,18 @@ static int oml_tx_attr_resp(const struct gsm_abis_mo *mo,
for (unsigned int i = 0; i < attr_len; i++) {
switch (attr[i]) {
+ case NM_ATT_OPER_STATE:
+ msgb_tv16_put(nmsg, attr[i], 1);
+ msgb_put_u8(nmsg, mo->nm_state.operational);
+ break;
+ case NM_ATT_ADM_STATE:
+ msgb_tv16_put(nmsg, attr[i], 1);
+ msgb_put_u8(nmsg, mo->nm_state.administrative);
+ break;
+ case NM_ATT_AVAIL_STATUS:
+ msgb_tv16_put(nmsg, attr[i], 1);
+ msgb_put_u8(nmsg, mo->nm_state.availability);
+ break;
case NM_ATT_SW_CONFIG:
if (add_att_sw_config(nmsg, mo) != 0)
goto unsupported;