Change in osmo-pcu[master]: pdch: cosmetic: use GSM_MI_TYPE_* constants from libosmocore

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Fri Mar 27 14:55:23 UTC 2020


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/17619 )

Change subject: pdch: cosmetic: use GSM_MI_TYPE_* constants from libosmocore
......................................................................

pdch: cosmetic: use GSM_MI_TYPE_* constants from libosmocore

Change-Id: I1d85c8eded68bc8aa8e90c33b36d335fa775ded2
---
M src/pdch.cpp
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/pdch.cpp b/src/pdch.cpp
index 9910974..9b4d89b 100644
--- a/src/pdch.cpp
+++ b/src/pdch.cpp
@@ -209,7 +209,7 @@
 		     osmo_mi_name(pag->identity_lv + 1, pag->identity_lv[0]));
 
 		/* try to add paging */
-		if ((pag->identity_lv[1] & 0x07) == 4) {
+		if ((pag->identity_lv[1] & GSM_MI_TYPE_MASK) == GSM_MI_TYPE_TMSI) {
 			/* TMSI */
 			len = 1 + 1 + 1 + 32 + 2 + 1;
 			if (pag->identity_lv[0] != 5) {

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I1d85c8eded68bc8aa8e90c33b36d335fa775ded2
Gerrit-Change-Number: 17619
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200327/a1f08444/attachment.htm>


More information about the gerrit-log mailing list