void sending rrc connection release as msg4

master
Francisco Paisana 5 years ago committed by Francisco Paisana
parent c87197dd4e
commit 65ef16c7f1

@ -102,9 +102,9 @@ private:
bool is_grant_available = false; bool is_grant_available = false;
srslte_phich_grant_t phich_grant = {}; srslte_phich_grant_t phich_grant = {};
void metrics_read(phy_metrics_t* metrics); void metrics_read(phy_metrics_t* metrics);
void metrics_dl(uint32_t mcs); void metrics_dl(uint32_t mcs);
void metrics_ul(uint32_t mcs, float rssi, float sinr, float turbo_iters); void metrics_ul(uint32_t mcs, float rssi, float sinr, float turbo_iters);
uint32_t get_rnti() const { return rnti; } uint32_t get_rnti() const { return rnti; }
private: private:

@ -87,6 +87,7 @@ public:
const std::map<uint8_t, erab_t>& get_erabs() const { return erabs; } const std::map<uint8_t, erab_t>& get_erabs() const { return erabs; }
const asn1::rrc::drb_to_add_mod_list_l& established_drbs() const { return last_drbs; } const asn1::rrc::drb_to_add_mod_list_l& established_drbs() const { return last_drbs; }
const asn1::rrc::srb_to_add_mod_list_l& established_srbs() const { return last_srbs; }
private: private:
srslte::log_ref log_h{"RRC"}; srslte::log_ref log_h{"RRC"};

@ -259,10 +259,7 @@ int mac::ue_set_crnti(uint16_t temp_crnti, uint16_t crnti, sched_interface::ue_c
{ {
srslte::rwlock_read_guard lock(rwlock); srslte::rwlock_read_guard lock(rwlock);
if (temp_crnti != crnti) { if (temp_crnti != crnti) {
// if RNTI is maintained, Msg3 contained a RRC Setup Request // if C-RNTI is changed, it corresponds to older user. Handover scenario.
// C-RNTI corresponds to older user. Handover scenario.
phy_h->rem_rnti(crnti);
phy_h->add_rnti(crnti, cfg->supported_cc_list[0].enb_cc_idx, false);
ue_db[crnti]->reset(); ue_db[crnti]->reset();
} }
int ret = ue_cfg(crnti, cfg); int ret = ue_cfg(crnti, cfg);

@ -198,7 +198,7 @@ void rrc::upd_user(uint16_t new_rnti, uint16_t old_rnti)
if (old_it->second->is_connected()) { if (old_it->second->is_connected()) {
old_it->second->send_connection_reconf_upd(srslte::allocate_unique_buffer(*pool)); old_it->second->send_connection_reconf_upd(srslte::allocate_unique_buffer(*pool));
} else { } else {
old_it->second->send_connection_release(); old_it->second->send_connection_reject();
} }
} }
} }

Loading…
Cancel
Save