summaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-01-07 14:36:20 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-01-07 14:36:20 +0100
commitd6fb23523acd423e2d5735f3efdf479ebb8b1f8b (patch)
tree5accfb7830f2d3f01f07bead63236c1ccc106bc3 /openbsc
parent2aa0b45cc03ab8c91fabdaf585cb8b17c3f26c2c (diff)
[bssap] Fix brown paper bag... Keep the air id ...*sigh*
We want to use the real number on the Um... Using the core network code is totally wrong in this scope...
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bssap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c
index 94e55a6c5..ae24a896e 100644
--- a/openbsc/src/bssap.c
+++ b/openbsc/src/bssap.c
@@ -576,8 +576,8 @@ int dtap_rcvmsg(struct gsm_lchan *lchan, struct msgb *msg, unsigned int length)
if (gh->msg_type == GSM48_MT_MM_LOC_UPD_ACCEPT) {
struct gsm_network *net = gsm48->trx->bts->network;
struct gsm48_loc_area_id *lai = (struct gsm48_loc_area_id *) &gh->data[0];
- gsm0408_generate_lai(lai, get_country_code_for_msc(net),
- get_network_code_for_msc(net),
+ gsm0408_generate_lai(lai, net->country_code,
+ net->network_code,
gsm48->trx->bts->location_area_code);
}
}