diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-11-30 19:16:47 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-11-30 19:16:47 +0100 |
commit | dbb1d883594ba8796acbc7831d4ad042c7070d12 (patch) | |
tree | 81175504c637c208b97e994f4ae31cf6d0d47150 /openbsc/src/abis_rsl.c | |
parent | 798418a068fcc95f8f5bcad5ba923ab065d7fa86 (diff) |
[handover] export measurement reports via signal
This patch introduces the S_LCHAN_MEAS_REP signal which is used to export
measurement reports as input to the yet-to-be-written handover algorithm.
Diffstat (limited to 'openbsc/src/abis_rsl.c')
-rw-r--r-- | openbsc/src/abis_rsl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c index 8033a3c74..b049c3c8a 100644 --- a/openbsc/src/abis_rsl.c +++ b/openbsc/src/abis_rsl.c @@ -1005,6 +1005,8 @@ static int rsl_rx_meas_res(struct msgb *msg) memset(&mr, 0, sizeof(mr)); + mr.lchan = msg->lchan; + rsl_tlv_parse(&tp, dh->data, msgb_l2len(msg)-sizeof(*dh)); if (!TLVP_PRESENT(&tp, RSL_IE_MEAS_RES_NR) || @@ -1048,9 +1050,10 @@ static int rsl_rx_meas_res(struct msgb *msg) return rc; } - /* FIXME: do something with the actual result*/ print_meas_rep(&mr); + dispatch_signal(SS_LCHAN, S_LCHAN_MEAS_REP, &mr); + return 0; } |