From b7e11b7bda9463b3954be9a4b3d5f143578aa9d1 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Thu, 12 Mar 2020 17:32:37 +0100 Subject: [PATCH] Use RRC establishment cause mo-signalling for NAS Attach procedure --- srsue/src/stack/ue_stack_lte.cc | 3 +-- srsue/src/stack/upper/nas.cc | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/srsue/src/stack/ue_stack_lte.cc b/srsue/src/stack/ue_stack_lte.cc index 661f370ac..a5efbbdeb 100644 --- a/srsue/src/stack/ue_stack_lte.cc +++ b/srsue/src/stack/ue_stack_lte.cc @@ -180,7 +180,7 @@ bool ue_stack_lte::switch_on() { if (running) { pending_tasks.try_push(ue_queue_id, - [this]() { nas.start_attach_request(nullptr, srslte::establishment_cause_t::mo_data); }); + [this]() { nas.start_attach_request(nullptr, srslte::establishment_cause_t::mo_sig); }); // schedule airplane mode on command if (args.sim.airplane_t_on_ms > 0) { @@ -189,7 +189,6 @@ bool ue_stack_lte::switch_on() disable_data(); }); } - return true; } return false; diff --git a/srsue/src/stack/upper/nas.cc b/srsue/src/stack/upper/nas.cc index 43c078163..8bee6c499 100644 --- a/srsue/src/stack/upper/nas.cc +++ b/srsue/src/stack/upper/nas.cc @@ -124,7 +124,7 @@ proc_outcome_t nas::plmn_search_proc::react(const plmn_search_complete_t& t) nas_ptr->rrc->plmn_select(nas_ptr->current_plmn); state = state_t::rrc_connect; - if (not nas_ptr->rrc_connector.launch(srslte::establishment_cause_t::mo_data, nullptr)) { + if (not nas_ptr->rrc_connector.launch(srslte::establishment_cause_t::mo_sig, nullptr)) { ProcError("Unable to initiate RRC connection.\n"); return proc_outcome_t::error; }