Change in osmo-ttcn3-hacks[master]: BSC LCLS: explicitly check for RSL_IE_CHAN_NR

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

Max gerrit-no-reply at lists.osmocom.org
Tue Nov 6 18:13:00 UTC 2018


Max has submitted this change and it was merged. ( https://gerrit.osmocom.org/11556 )

Change subject: BSC LCLS: explicitly check for RSL_IE_CHAN_NR
......................................................................

BSC LCLS: explicitly check for RSL_IE_CHAN_NR

Check that channel number IE is present in the received message. This
fixes following warning:

The value returned by function `@RSL_Types.f_rsl_find_ie' is not used

Change-Id: Icc6824d7acef809d76c70b5ff060a8261a82e2be
Related: OS#3659
---
M bsc/BSC_Tests_LCLS.ttcn
1 file changed, 5 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/bsc/BSC_Tests_LCLS.ttcn b/bsc/BSC_Tests_LCLS.ttcn
index 1c51995..0151329 100644
--- a/bsc/BSC_Tests_LCLS.ttcn
+++ b/bsc/BSC_Tests_LCLS.ttcn
@@ -605,8 +605,11 @@
 	[] CONN_A.receive(tr_RSL_DEACT_SACCH(?));
 	[] CONN_A.receive(tr_RSL_RF_CHAN_REL(?)) -> value rsl {
 		var RSL_IE_Body ieb;
-		f_rsl_find_ie(rsl, RSL_IE_CHAN_NR, ieb);
-		CONN_A.send(ts_RSL_RF_CHAN_REL_ACK(ieb.chan_nr));
+		if (f_rsl_find_ie(rsl, RSL_IE_CHAN_NR, ieb) == true) {
+			CONN_A.send(ts_RSL_RF_CHAN_REL_ACK(ieb.chan_nr));
+		} else {
+			log("Unable to find chan# in RSL_RF_CHAN_REL")
+		}
 		}
 	[] CONN_A.receive(tr_BSSMAP_ClearComplete) {
 		CONN_A.send(BSSAP_Conn_Prim:MSC_CONN_PRIM_DISC_REQ);

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

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Icc6824d7acef809d76c70b5ff060a8261a82e2be
Gerrit-Change-Number: 11556
Gerrit-PatchSet: 3
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181106/49ebf2f3/attachment.htm>


More information about the gerrit-log mailing list