From 4eeb808c4359595814b7f1831376cf71b54e7e84 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Fri, 23 Mar 2018 01:47:14 +0100 Subject: avoid warning in gsm0808_create_layer3 Change-Id: Ie098af4fc9640240196eda10fd61edcb3a872455 --- src/gsm/gsm0808.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gsm/gsm0808.c b/src/gsm/gsm0808.c index 27ea035c..e6a581c2 100644 --- a/src/gsm/gsm0808.c +++ b/src/gsm/gsm0808.c @@ -120,7 +120,17 @@ struct msgb *gsm0808_create_layer3_2(const struct msgb *msg_l3, const struct osm struct msgb *gsm0808_create_layer3(struct msgb *msg_l3, uint16_t nc, uint16_t cc, int lac, uint16_t _ci) { - return gsm0808_create_layer3_aoip(msg_l3, nc, cc, lac, _ci, NULL); + struct osmo_cell_global_id cgi = { + .lai = { + .plmn = { + .mcc = cc, + .mnc = nc, + }, + .lac = lac, + }, + .cell_identity = _ci, + }; + return gsm0808_create_layer3_2(msg_l3, &cgi, NULL); } /*! Create BSSMAP RESET message -- cgit v1.2.3