Change in osmo-ttcn3-hacks[master]: library/Osmocom_Types: fix: '10111111'B is a valid emergency RA

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Sun Aug 30 19:25:30 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19905 )


Change subject: library/Osmocom_Types: fix: '10111111'B is a valid emergency RA
......................................................................

library/Osmocom_Types: fix: '10111111'B is a valid emergency RA

Most likely, the second part of the condition was copy-pasted
from ra_is_ps(), where the specs. require that at least one
of the three LSB's shall be zero.  This requirement does not
apply to emergency RA values in range '101xxxxx'B.

Change-Id: I4c923682edfeee9c6bf3aeeeb67438809a54109f
---
M library/Osmocom_Types.ttcn
1 file changed, 1 insertion(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/05/19905/1

diff --git a/library/Osmocom_Types.ttcn b/library/Osmocom_Types.ttcn
index 2ee3215..fa36881 100644
--- a/library/Osmocom_Types.ttcn
+++ b/library/Osmocom_Types.ttcn
@@ -208,10 +208,7 @@
 
 function ra_is_emerg(OCT1 ra) return boolean {
 	/* See also: 3GPP TS 04.08, Table 9.9, ra=101xxxxx */
-	if ((ra and4b 'E0'O == 'A0'O) and (ra and4b '1F'O != '1F'O)) {
-		return true;
-	}
-	return false;
+	return (ra and4b 'E0'O == 'A0'O);
 }
 
 /* generate a random RACH for circuit-switched */

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

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I4c923682edfeee9c6bf3aeeeb67438809a54109f
Gerrit-Change-Number: 19905
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200830/ab0d16d0/attachment.htm>


More information about the gerrit-log mailing list