fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bts/+/34433?usp=email )
Change subject: oml: oml_tx_attr_resp(): handle common nm_state attributes
......................................................................
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
---
M src/common/oml.c
1 file changed, 25 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/33/34433/1
diff --git a/src/common/oml.c b/src/common/oml.c
index 7aefe08..85ec5d7 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -230,6 +230,18 @@
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;
--
To view, visit
https://gerrit.osmocom.org/c/osmo-bts/+/34433?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I94702c503fea5b42d84673ccd7065c9323b733b8
Gerrit-Change-Number: 34433
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange