commit | df65951d5cd4363aa18cfd8395bf259961b64de1 | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <neels@hofmeyr.de> | Wed Jul 29 00:41:42 2020 +0200 |
committer | laforge <laforge@osmocom.org> | Thu Aug 13 05:36:26 2020 +0000 |
tree | 7e89fc302b3ccfa5bd4c23c45fa5e46f478a8b78 | |
parent | 289c36a6e39c4ec04cc5811625b05352c24454b3 [diff] |
bsc CBSP: f_page2rsl: fix nr of blocks calculation When dividing the payload by 22, the initial 6 header octets must also be taken into account. And, the last_block value indicates 4 as 0, which is not encoded correctly before this patch. Add a separate f_cbsp_block_count_enc() to fix the calculation. Change-Id: I06cc144bd92e94d461dac3f56a738da8e055b73a