Review at  https://gerrit.osmocom.org/7714

avoid warning in gsm0808_create_layer3

Change-Id: Ie098af4fc9640240196eda10fd61edcb3a872455
---
M src/gsm/gsm0808.c
1 file changed, 11 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/14/7714/1

diff --git a/src/gsm/gsm0808.c b/src/gsm/gsm0808.c
index 27ea035..e6a581c 100644
--- a/src/gsm/gsm0808.c
+++ b/src/gsm/gsm0808.c
@@ -120,7 +120,17 @@
 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

-- 
To view, visit https://gerrit.osmocom.org/7714
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie098af4fc9640240196eda10fd61edcb3a872455
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofm...@sysmocom.de>

Reply via email to