CBSP: Fix receive templates if channel_ind == omit

Change-Id: I6e15a7499b5da6f63a517f303576a877ea038788
This commit is contained in:
Harald Welte 2019-09-06 23:08:23 +02:00
parent 11b734cb10
commit 25a6075044
1 changed files with 9 additions and 3 deletions

View File

@ -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);
}