aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/abis_rsl.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-30 12:06:20 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-30 12:06:20 +0800
commit0379c6d386e1e5c0b1142e672697efc0eee85677 (patch)
tree120f6cf2357384d13c3810c7e080af990906b499 /openbsc/src/abis_rsl.c
parente38bd6caa34005816a9336f021fd17d328d5c901 (diff)
abis_rsl: Add full MA again until we are confident to remove it
The spec seems to say we do not need to include the full MA, even for Phase1 phones but that is not so clear...
Diffstat (limited to 'openbsc/src/abis_rsl.c')
-rw-r--r--openbsc/src/abis_rsl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c
index 0a86e7990..161c4d3b3 100644
--- a/openbsc/src/abis_rsl.c
+++ b/openbsc/src/abis_rsl.c
@@ -459,7 +459,12 @@ int rsl_chan_activate_lchan(struct gsm_lchan *lchan, u_int8_t act_type,
msgb_v_put(msg, RSL_IE_CHAN_IDENT);
len = msgb_put(msg, 1);
msgb_tlv_put(msg, GSM48_IE_CHANDESC_2, sizeof(cd), (const uint8_t *) &cd);
- msgb_tlv_put(msg, GSM48_IE_MA_AFTER, 0, NULL);
+
+ if (lchan->ts->hopping.enabled)
+ msgb_tlv_put(msg, GSM48_IE_MA_AFTER, lchan->ts->hopping.ma_len,
+ lchan->ts->hopping.ma_data);
+ else
+ msgb_tlv_put(msg, GSM48_IE_MA_AFTER, 0, NULL);
/* update the calculated size */
msg->l3h = len + 1;