diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-07-03 15:59:52 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-07-05 18:16:08 +0200 |
commit | 8ca8a26ce95a1760a4574f71c2c4113da8aa80ff (patch) | |
tree | 9a16de16ca10764fedb0ee1835e2807dbb648a98 /src/common/oml.c | |
parent | 221ee92551a3d34c4f61e99e5bf4aa718c4d6f88 (diff) |
gsm_data.h: Use enum type for NM state fields
Change-Id: I21fa1688a0c8a3788a5ecedd5912f596a69a1beb
Diffstat (limited to 'src/common/oml.c')
-rw-r--r-- | src/common/oml.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/oml.c b/src/common/oml.c index 5f64d526..63287f06 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -314,6 +314,7 @@ static int oml_tx_attr_resp(const struct gsm_abis_mo *mo, int oml_tx_state_changed(const struct gsm_abis_mo *mo) { struct msgb *nmsg; + uint8_t avail_state; nmsg = oml_msgb_alloc(); if (!nmsg) @@ -323,7 +324,8 @@ int oml_tx_state_changed(const struct gsm_abis_mo *mo) msgb_tv_put(nmsg, NM_ATT_OPER_STATE, mo->nm_state.operational); /* 9.4.7 Availability Status */ - msgb_tl16v_put(nmsg, NM_ATT_AVAIL_STATUS, 1, &mo->nm_state.availability); + avail_state = (uint8_t) mo->nm_state.availability; + msgb_tl16v_put(nmsg, NM_ATT_AVAIL_STATUS, 1, &avail_state); /* 9.4.4 Administrative Status -- not in spec but also sent by nanobts */ msgb_tv_put(nmsg, NM_ATT_ADM_STATE, mo->nm_state.administrative); |