summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/abis_om2000.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-03-06 23:00:32 +0100
committerHarald Welte <laforge@gnumonks.org>2011-03-06 23:00:32 +0100
commit8b277ac381542041685c5d03752817dedd217dde (patch)
tree1ce72a520488a02c6f22f9ae9fdd460d3b74f506 /openbsc/src/libbsc/abis_om2000.c
parent1484d88d7a78d467b62fce4616725f1723cf7f1e (diff)
OM2000: Make sure we fill the nsd->bts member for NM state events
Diffstat (limited to 'openbsc/src/libbsc/abis_om2000.c')
-rw-r--r--openbsc/src/libbsc/abis_om2000.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/abis_om2000.c b/openbsc/src/libbsc/abis_om2000.c
index 41e30c0..6b83a98 100644
--- a/openbsc/src/libbsc/abis_om2000.c
+++ b/openbsc/src/libbsc/abis_om2000.c
@@ -747,6 +747,7 @@ static void update_mo_state(struct gsm_bts *bts, struct abis_om2k_mo *mo,
memset(&nsd, 0, sizeof(nsd));
+ nsd.bts = bts;
nsd.obj = mo2obj(bts, mo);
nsd.old_state = nm_state;
nsd.new_state = &new_state;
@@ -787,6 +788,7 @@ static void signal_op_state(struct gsm_bts *bts, struct abis_om2k_mo *mo)
struct gsm_nm_state *nm_state = mo2nm_state(bts, mo);
struct nm_statechg_signal_data nsd;
+ nsd.bts = bts;
nsd.obj = mo2obj(bts, mo);
nsd.old_state = nm_state;
nsd.new_state = nm_state;