diff options
author | Max <msuraev@sysmocom.de> | 2018-11-09 13:36:11 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2018-12-18 17:48:46 +0000 |
commit | fe65ece24cb25f44b587c16d102bf57da1acbb42 (patch) | |
tree | 128723608135491e97cccc61635ff50cb8e284e9 /src/osmo-bsc/bsc_subscr_conn_fsm.c | |
parent | 1cf21de48fe354d364f8b930448ec788553275c7 (diff) |
LCLS: update parameter representation
* use osmo_lcls struct from libosmocore
* use enum values instead of magic numbers
Change-Id: I5e962d4fbb24bf1fb2398dc13e142a4a3304d858
Related: OS#3659
Diffstat (limited to 'src/osmo-bsc/bsc_subscr_conn_fsm.c')
-rw-r--r-- | src/osmo-bsc/bsc_subscr_conn_fsm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bsc/bsc_subscr_conn_fsm.c b/src/osmo-bsc/bsc_subscr_conn_fsm.c index fac0bc0b7..85e754fa4 100644 --- a/src/osmo-bsc/bsc_subscr_conn_fsm.c +++ b/src/osmo-bsc/bsc_subscr_conn_fsm.c @@ -883,9 +883,9 @@ struct gsm_subscriber_connection *bsc_subscr_con_allocate(struct gsm_network *ne return NULL; } - /* initialize to some magic values that indicate "IE not [yet] received" */ - conn->lcls.config = 0xff; - conn->lcls.control = 0xff; + /* indicate "IE not [yet] received" */ + conn->lcls.config = GSM0808_LCLS_CFG_NA; + conn->lcls.control = GSM0808_LCLS_CSC_NA; conn->lcls.fi = osmo_fsm_inst_alloc_child(&lcls_fsm, conn->fi, GSCON_EV_LCLS_FAIL); if (!conn->lcls.fi) { osmo_fsm_inst_term(conn->fi, OSMO_FSM_TERM_ERROR, NULL); |