aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/abis_rsl.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-06-15 16:45:51 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-20 10:44:53 +0200
commit29aca17ed0f33aa0f8ce646425425b6b57892025 (patch)
tree71c78e2008215085bb2b7e9544a3eaf18e6755e4 /openbsc/src/abis_rsl.c
parent7401ae6a7932dd8156087bdaf6fc476e6a49f96f (diff)
[BSC] Hopping: Add MA IE to ASS CMD, IMM ASS CMD and HO CMD
Also, make sure the bit ordering in the pre-computed MA is correct, as well as the cell channel description of the target cell being present in the HO CMD.
Diffstat (limited to 'openbsc/src/abis_rsl.c')
-rw-r--r--openbsc/src/abis_rsl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c
index f3873548..e47900d4 100644
--- a/openbsc/src/abis_rsl.c
+++ b/openbsc/src/abis_rsl.c
@@ -1203,7 +1203,10 @@ static int rsl_rx_chan_rqd(struct msgb *msg)
if (!lchan->ts->hopping.enabled) {
ia.mob_alloc_len = 0;
} else {
- /* FIXME: Mobile Allocation in case of hopping */
+ uint8_t *ma;
+ ia.mob_alloc_len = lchan->ts->hopping.ma_len;
+ ma = msgb_put(msg, ia.mob_alloc_len);
+ memcpy(ma, lchan->ts->hopping.ma_data, ia.mob_alloc_len);
}
DEBUGP(DRSL, "%s Activating ARFCN(%u) SS(%u) lctype %s "