diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2020-12-06 01:23:51 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-12-16 12:50:50 +0100 |
commit | 5012e076855936ac7d248a829cd60740cea8c9e4 (patch) | |
tree | 5cc265cdd3759d7c6922ea04c0c25566932b0aa8 /src/gprs_bssgp_pcu.cpp | |
parent | 398f60e11cce6c71d7f6dc9269943ba93bec1861 (diff) |
ns2: follow ns2 dialect changes
NS2 introduce a ns dialect to differentiate
between the 4 possible dialects.
Related: OS#4472, OS#4890
Depends: libosmocore.git Ia118bb6f994845d84db09de7a94856f5ca573404
Change-Id: I16dc82c38eb75c2b9d1197640a955fec7df84efc
Diffstat (limited to 'src/gprs_bssgp_pcu.cpp')
-rw-r--r-- | src/gprs_bssgp_pcu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp index 934d8fc5..4d24d2e0 100644 --- a/src/gprs_bssgp_pcu.cpp +++ b/src/gprs_bssgp_pcu.cpp @@ -984,7 +984,7 @@ static int ns_create_nsvc(struct gprs_rlcmac_bts *bts, bts->nse = gprs_ns2_nse_by_nsei(bts->nsi, nsei); if (!bts->nse) bts->nse = gprs_ns2_create_nse(bts->nsi, nsei, - GPRS_NS2_LL_UDP); + GPRS_NS2_LL_UDP, bts->ns_dialect); if (!bts->nse) { LOGP(DBSSGP, LOGL_ERROR, "Failed to create NSE\n"); @@ -997,7 +997,7 @@ static int ns_create_nsvc(struct gprs_rlcmac_bts *bts, continue; /* FIXME: for SNS we just use the first successful NS-VC instead of all for the initial connect */ - if (bts->gb_dialect_sns) { + if (bts->ns_dialect == NS2_DIALECT_SNS) { rc = gprs_ns2_ip_connect_sns(bind[i], &remote[i], nsei); if (!rc) return rc; @@ -1066,7 +1066,7 @@ int gprs_ns_config(struct gprs_rlcmac_bts *bts, uint16_t nsei, gprs_ns2_free_nses(bts->nsi); gprs_ns2_free_binds(bts->nsi); rc = ns_create_nsvc(bts, nsei, local, remote, nsvci, valid); - } else if (bts->gb_dialect_sns) { + } else if (bts->ns_dialect == NS2_DIALECT_SNS) { /* SNS: check if the initial nsvc is the same, if not recreate it */ const struct osmo_sockaddr *initial = gprs_ns2_nse_sns_remote(bts->nse); for (unsigned int i = 0; i < PCU_IF_NUM_NSVC; i++) { |