From 0ecc3149bad58063b5753fffa0058bc459631d5f Mon Sep 17 00:00:00 2001 From: Cedric Roux Date: Thu, 5 Mar 2020 11:16:46 +0100 Subject: [PATCH] bugfix: ul grant is 27 bits, does not fit into uint16_t --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c index e8f01b8f71..0cbb4043f9 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c @@ -761,7 +761,7 @@ void nr_fill_rar(uint8_t Mod_idP, NR_MAC_RAR *rar = (NR_MAC_RAR *) (dlsch_buffer + 1); unsigned char csi_req = 0, tpc_command; uint8_t N_UL_Hop, valid_bits; - uint16_t ul_grant, f_alloc, prb_alloc, bwp_size, truncation=0; + uint32_t ul_grant, f_alloc, prb_alloc, bwp_size, truncation=0; tpc_command = 3; // this is 0 dB