Addressed @andrepuschmann comments

master
Ismael Gomez 5 years ago committed by Andre Puschmann
parent 773c2a9721
commit f6a5d28283

@ -395,7 +395,7 @@ uint8_t* mux::msg3_get(srslte::byte_buffer_t* payload, uint32_t pdu_sz)
return payload->msg;
} else {
Error("Msg3 size exceeds buffer\n");
return NULL;
return nullptr;
}
}

@ -488,7 +488,7 @@ bool ra_proc::is_contention_resolution()
/* Perform the actions upon completition of the RA procedure as defined in 5.1.6 */
void ra_proc::complete()
{
/* Start looking for PDCCH CRNTI */
// Start looking for PDCCH CRNTI
if (!transmitted_crnti) {
rntis->crnti = rntis->temp_rnti;
}

@ -31,7 +31,7 @@
using namespace srsue;
using namespace srslte;
#define HAVE_PCAP 1
#define HAVE_PCAP 0
static std::unique_ptr<srslte::mac_pcap> pcap_handle = nullptr;
@ -206,8 +206,7 @@ public:
{
// Generate RAR to MAC
uint8_t grant[SRSLTE_RAR_GRANT_LEN] = {};
memset(grant, 1, SRSLTE_RAR_GRANT_LEN);
uint8_t grant[SRSLTE_RAR_GRANT_LEN] = {1};
uint32_t rar_timeadv = 16;
@ -1302,9 +1301,8 @@ int mac_random_access_test()
uint32 tti = 0;
// Structure that defines the test to be executed
struct ra_test my_test;
struct ra_test my_test = {};
uint32_t test_id = 1;
ZERO_OBJECT(my_test);
my_test.temp_rnti = 100;
my_test.assume_prach_transmitted = -1;

Loading…
Cancel
Save