Change in libosmocore[master]: gsm: Support Sending Las EUTRAN PLMN Id in Handover Required

pespin gerrit-no-reply at lists.osmocom.org
Wed Apr 14 19:28:48 UTC 2021


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/23760 )


Change subject: gsm: Support Sending Las EUTRAN PLMN Id in Handover Required
......................................................................

gsm: Support Sending Las EUTRAN PLMN Id in Handover Required

Related: SYS#5337
Change-Id: I6280ce1abc283f1491bc6f391b2dd952df33a16b
---
M TODO-RELEASE
M include/osmocom/gsm/gsm0808.h
M src/gsm/gsm0808.c
3 files changed, 9 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/60/23760/1

diff --git a/TODO-RELEASE b/TODO-RELEASE
index bc157bd..53401ec 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -8,3 +8,4 @@
 # If any interfaces have been removed or changed since the last public release: c:r:0.
 #library	what			description / commit summary line
 libosmovty	_LAST_OSMOVTY_NODE 	Raise _LAST_OSMOVTY_NODE by introducing some RESERVED*_NODE
+libosmogsm      gsm0808_old_bss_to_new_bss_info ABI break (struct changes size)
diff --git a/include/osmocom/gsm/gsm0808.h b/include/osmocom/gsm/gsm0808.h
index b921eda..5b7a89c 100644
--- a/include/osmocom/gsm/gsm0808.h
+++ b/include/osmocom/gsm/gsm0808.h
@@ -127,6 +127,9 @@
 	} current_channel_type_2;
 
 	/* more items are defined in the spec and may be added later */
+	bool last_eutran_plmn_id_present;
+	struct osmo_plmn_id last_eutran_plmn_id;
+
 	bool more_items; /*< always set this to false */
 };
 
diff --git a/src/gsm/gsm0808.c b/src/gsm/gsm0808.c
index 6070ef3..01c3cee 100644
--- a/src/gsm/gsm0808.c
+++ b/src/gsm/gsm0808.c
@@ -833,6 +833,11 @@
 		msgb_tlv_put(msg, GSM0808_FE_IE_CURRENT_CHANNEL_TYPE_2, 2, val);
 	}
 
+	if (i->last_eutran_plmn_id_present) {
+		msgb_put_u8(msg, GSM0808_FE_IE_LAST_USED_EUTRAN_PLMN_ID);
+		osmo_plmn_to_bcd(msgb_put(msg, 3), &i->last_eutran_plmn_id);
+	}
+
 	*tlv_len = (uint8_t) (msg->tail - old_tail);
 	return *tlv_len + 2;
 }

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/23760
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I6280ce1abc283f1491bc6f391b2dd952df33a16b
Gerrit-Change-Number: 23760
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210414/ad787807/attachment.htm>


More information about the gerrit-log mailing list