diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2021-04-12 14:43:10 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2021-05-28 17:22:59 +0000 |
commit | 1b277ec2a22d039f1e32c7ceff7809b2a968e476 (patch) | |
tree | 419b561925f969dfe139cd3428aa3c62f4633553 /src/ipaccess | |
parent | 69def1f97e427fa65d242f21110f01cb5d0a2818 (diff) |
RSL link: explicitly select rsl_link based on lchan
Prepare for VAMOS, where there will be secondary "shadow" lchans serving
secondary MS on the same timeslots. For those, RSL messages will need to
reflect a different stream ID aka TEI, via an rsl_link_vamos.
Make sure that every code path that sends an RSL message for a specific
lchan selects the RSL link via the new function rsl_chan_link(). When
VAMOS is implemented, this function can select the proper RSL stream.
Rename gsm_bts_trx.rsl_link to rsl_link_primary. This makes sure I'm not
missing any uses of the RSL link, and clarifies the code.
Related: SYS#5315 OS#4940
Change-Id: Ifbf16bb296e91f151d19e15e39f5c953ad77ff17
Diffstat (limited to 'src/ipaccess')
-rw-r--r-- | src/ipaccess/ipaccess-config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipaccess/ipaccess-config.c b/src/ipaccess/ipaccess-config.c index cf649bd55..02501bdb5 100644 --- a/src/ipaccess/ipaccess-config.c +++ b/src/ipaccess/ipaccess-config.c @@ -159,7 +159,7 @@ static int ia_config_connect(struct gsm_bts *bts, struct sockaddr_in *sin) /* create back-links from bts/trx */ bts->oml_link = oml_link; - bts->c0->rsl_link = rsl_link; + bts->c0->rsl_link_primary = rsl_link; /* default port at BTS for incoming connections is 3006 */ if (sin->sin_port == 0) @@ -1122,7 +1122,7 @@ int main(int argc, char **argv) } bts->oml_link->ts->sign.delay = 10; - bts->c0->rsl_link->ts->sign.delay = 10; + bts->c0->rsl_link_primary->ts->sign.delay = 10; while (1) { rc = osmo_select_main(0); if (rc < 0) |