Fixed RLC/MAC downlink block data length and gprs_rlcmac_tx_dl_data_block function.
This commit is contained in:
parent
a9f1ff2b64
commit
a21f275035
|
@ -46,7 +46,7 @@ struct bssgp_bvc_ctx *btsctx_alloc(uint16_t bvci, uint16_t nsei);
|
|||
#define NS_HDR_LEN 4
|
||||
#define MAX_LEN_PDU 60
|
||||
#define IE_PDU 14
|
||||
#define BLOCK_DATA_LEN 19
|
||||
#define BLOCK_DATA_LEN 20
|
||||
#define BLOCK_LEN 23
|
||||
|
||||
#define CELL_ID 3
|
||||
|
|
|
@ -603,7 +603,7 @@ void gprs_rlcmac_tx_dl_data_block(uint32_t tlli, uint8_t tfi, uint8_t *pdu, int
|
|||
data_block->TFI = tfi;
|
||||
data_block->FBI = fbi;
|
||||
data_block->BSN = bsn;
|
||||
if ((end_index - start_index) < 20) {
|
||||
if ((end_index - start_index) < 19) {
|
||||
data_block->E_1 = 0;
|
||||
data_block->LENGTH_INDICATOR[0] = end_index-start_index;
|
||||
data_block->M[0] = 0;
|
||||
|
|
Loading…
Reference in New Issue