pcu: f_dl_block_ack_fn(): Allow passing ctrl dl_block

Downlink Control blocks like Packet Uplink Assignment (PACCH)
contain rrbp + rrbp_valid in mac headers

Change-Id: I0401b0b378c7770d06a15d14dac6436303b4ccab
This commit is contained in:
Pau Espin 2020-05-13 16:42:24 +02:00
parent 4aac3d0c8f
commit 1832cd8fb0
1 changed files with 2 additions and 3 deletions

View File

@ -708,9 +708,8 @@ runs on RAW_PCU_Test_CT return uint32_t {
rrbp_valid := dl_block.data.mac_hdr.mac_hdr.rrbp_valid;
rrbp := dl_block.data.mac_hdr.mac_hdr.rrbp;
} else {
/* Should not happen, but the caller may theoretically give us a CTRL block */
setverdict(fail, "DL block is neither GPRS nor EGPRS data block: ", dl_block);
f_shutdown(__BFILE__, __LINE__);
rrbp_valid := dl_block.ctrl.mac_hdr.rrbp_valid;
rrbp := dl_block.ctrl.mac_hdr.rrbp;
}
/* Make sure that the given block really needs to be ACKnowledged */