summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-03-23 01:47:14 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-04-10 13:06:15 +0200
commit4eeb808c4359595814b7f1831376cf71b54e7e84 (patch)
treeb4b4ef904fd5cdec311a528c732537a4b44a94c7
parentbd6c8b508157ca68bb04bc1fa2ac0cf1dfc898f2 (diff)
avoid warning in gsm0808_create_layer3
Change-Id: Ie098af4fc9640240196eda10fd61edcb3a872455
-rw-r--r--src/gsm/gsm0808.c12
1 files changed, 11 insertions, 1 deletions
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