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
This commit is contained in:
Max 2018-10-31 19:42:08 +01:00
parent 41a3aab820
commit fc337ca0b1
1 changed files with 5 additions and 2 deletions

View File

@ -605,8 +605,11 @@ testcase TC_lcls_connect_clear() runs on lcls_test_CT {
[] 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);