aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc/osmo_bsc_api.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-13 11:06:10 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-13 11:06:10 +0200
commit1e365477ee5e4dc708b94474b4e094ea3c21d95b (patch)
tree4342f2d59de9c982598b214613dc15dd520856bb /openbsc/src/osmo-bsc/osmo_bsc_api.c
parent14a434b9d660cb92382f418739b8329b44640496 (diff)
bsc: Rename core_ncc to core_mnc
Struct osmo_msc_data contains int core_ncc, which is actually the MNC part of the PLMN, not to be confused with the Network Colour Code. The following patch renames this field for clarity and consistency with the standards.
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_api.c')
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_api.c b/openbsc/src/osmo-bsc/osmo_bsc_api.c
index 5a01d6b82..00a10b3a5 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_api.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_api.c
@@ -53,8 +53,8 @@ static int complete_layer3(struct gsm_subscriber_connection *conn,
static uint16_t get_network_code_for_msc(struct osmo_msc_data *msc)
{
- if (msc->core_ncc != -1)
- return msc->core_ncc;
+ if (msc->core_mnc != -1)
+ return msc->core_mnc;
return msc->network->network_code;
}