diff options
author | Harald Welte <laforge@osmocom.org> | 2020-12-12 14:22:32 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-12-12 15:17:33 +0100 |
commit | 4b4c997dc5e0881fc0fd05ae84350cf2d77fd84a (patch) | |
tree | 89677de50c8313e039ba9ac5300b363e1368d416 /src | |
parent | c4c1db9e7814e1fd74dfa273f5df117f309c3f16 (diff) |
gbproxy: Copy RA-ID from BSS side BVC to CELL and SGSN-side BVC
Change-Id: I18669f269c4a959fcfa51885aafb719b662a7f8a
Related: OS#4894
Diffstat (limited to 'src')
-rw-r--r-- | src/gbproxy/gb_proxy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c index ed4dbebb2..0dd45d4ab 100644 --- a/src/gbproxy/gb_proxy.c +++ b/src/gbproxy/gb_proxy.c @@ -509,6 +509,7 @@ static void bss_ptp_bvc_reset_notif(uint16_t nsei, uint16_t bvci, const struct g bvc->cell = gbproxy_cell_alloc(cfg, bvci); OSMO_ASSERT(bvc->cell); + memcpy(bvc->cell->ra, bvc->ra, sizeof(bvc->cell->ra)); /* link us to the cell and vice-versa */ bvc->cell->bss_bvc = bvc; @@ -524,6 +525,7 @@ static void bss_ptp_bvc_reset_notif(uint16_t nsei, uint16_t bvci, const struct g OSMO_ASSERT(sgsn_bvc); sgsn_bvc->cell = bvc->cell; + memcpy(sgsn_bvc->ra, bvc->cell->ra, sizeof(sgsn_bvc->ra)); sgsn_bvc->fi = bssgp_bvc_fsm_alloc_ptp_bss(sgsn_bvc, cfg->nsi, sgsn_nse->nsei, bvci, ra_id, cell_id); OSMO_ASSERT(sgsn_bvc->fi); |