Skip to content
Snippets Groups Projects

Use F1 internally: F1 Setup

Merged Robert Schmidt requested to merge int-f1-setup into develop
1 file
+ 10
3
Compare changes
  • Side-by-side
  • Inline
@@ -2109,15 +2109,22 @@ int RCconfig_NR_X2(MessageDef *msg_p, uint32_t i) {
void wait_f1_setup_response(void)
{
gNB_MAC_INST *mac = RC.nrmac[0];
if (mac->f1_config.setup_resp != NULL)
NR_SCHED_LOCK(&mac->sched_lock);
if (mac->f1_config.setup_resp != NULL) {
NR_SCHED_UNLOCK(&mac->sched_lock);
return;
}
LOG_W(GNB_APP, "waiting for F1 Setup Response before activating radio\n");
// TODO: do this properly, with scheduler mutex and signal
/* for the moment, we keep it simple and just sleep to periodically check.
* The actual check is protected by a mutex */
while (mac->f1_config.setup_resp == NULL) {
sleep(1); // let's wait like real pros
NR_SCHED_UNLOCK(&mac->sched_lock);
sleep(1);
NR_SCHED_LOCK(&mac->sched_lock);
}
NR_SCHED_UNLOCK(&mac->sched_lock);
}
static bool check_plmn_identity(const f1ap_plmn_t *check_plmn, const f1ap_plmn_t *plmn)
{
Loading