Commit 917b88f5 authored by francescomani's avatar francescomani

patch to trigger reestablishment

parent 0488abfe
...@@ -456,6 +456,8 @@ ldpc_interface_t ldpc_interface = {0}, ldpc_interface_offload = {0}; ...@@ -456,6 +456,8 @@ ldpc_interface_t ldpc_interface = {0}, ldpc_interface_offload = {0};
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
void gogo(void);
gogo();
int set_exe_prio = 1; int set_exe_prio = 1;
if (checkIfFedoraDistribution()) if (checkIfFedoraDistribution())
if (checkIfGenericKernelOnFedora()) if (checkIfGenericKernelOnFedora())
......
...@@ -2309,6 +2309,21 @@ void handle_t300_expiry(NR_UE_RRC_INST_t *rrc) ...@@ -2309,6 +2309,21 @@ void handle_t300_expiry(NR_UE_RRC_INST_t *rrc)
// TODO inform upper layers about the failure to establish the RRC connection // TODO inform upper layers about the failure to establish the RRC connection
} }
void *xx(void *_)
{
while (1) {
getchar();
NR_UE_RRC_INST_t *rrc = &NR_UE_rrc_inst[0];
nr_rrc_initiate_rrcReestablishment(rrc, NR_ReestablishmentCause_otherFailure, 0);
}
}
void gogo(void)
{
pthread_t t;
if (pthread_create(&t, NULL, xx, NULL) != 0) abort();
}
//This calls the sidelink preconf message after RRC, MAC instances are created. //This calls the sidelink preconf message after RRC, MAC instances are created.
void start_sidelink(int instance) void start_sidelink(int instance)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment