aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-09-06 23:08:23 +0200
committerHarald Welte <laforge@gnumonks.org>2019-09-06 23:09:05 +0200
commit25a60750442f29a622488e4543acaca199c07051 (patch)
tree779b20198969c0772b4bfa03ced85dda2e741a78
parent11b734cb10a471d6d6b4c0f69af841043be89e6d (diff)
CBSP: Fix receive templates if channel_ind == omit
-rw-r--r--library/CBSP_Templates.ttcn12
1 files changed, 9 insertions, 3 deletions
diff --git a/library/CBSP_Templates.ttcn b/library/CBSP_Templates.ttcn
index 2283e6fe..7c73d7c6 100644
--- a/library/CBSP_Templates.ttcn
+++ b/library/CBSP_Templates.ttcn
@@ -375,7 +375,9 @@ return template CBSP_PDU {
} else if (not istemplatekind(cell_list, "omit")) {
ies[lengthof(ies)] := tr_CbspCellList(cell_list);
}
- ies[lengthof(ies)] := tr_CbspChannelInd(channel_ind);
+ if (not istemplatekind(channel_ind, "omit")) {
+ ies[lengthof(ies)] := tr_CbspChannelInd(channel_ind);
+ }
return tr_CBSP(CBSP_MSGT_WRITE_REPLACE_COMPL, ies);
}
@@ -416,7 +418,9 @@ return template CBSP_PDU {
} else if (not istemplatekind(cell_list, "omit")) {
ies[lengthof(ies)] := tr_CbspCellList(cell_list);
}
- ies[lengthof(ies)] := tr_CbspChannelInd(channel_ind);
+ if (not istemplatekind(channel_ind, "omit")) {
+ ies[lengthof(ies)] := tr_CbspChannelInd(channel_ind);
+ }
return tr_CBSP(CBSP_MSGT_WRITE_REPLACE_COMPL, ies);
}
@@ -467,7 +471,9 @@ return template CBSP_PDU {
} else if (not istemplatekind(cell_list, "omit")) {
ies[lengthof(ies)] := tr_CbspCellList(cell_list);
}
- ies[lengthof(ies)] := ts_CbspChannelInd(channel_ind);
+ if (not istemplatekind(channel_ind, "omit")) {
+ ies[lengthof(ies)] := ts_CbspChannelInd(channel_ind);
+ }
return tr_CBSP(CBSP_MSGT_WRITE_REPLACE_FAIL, ies);
}