Added rrc function has_nr_dc

master
David Rupprecht 4 years ago committed by Andre Puschmann
parent c02aa8f124
commit 9eb0b72cb4

@ -201,6 +201,7 @@ public:
virtual void paging_completed(bool outcome) = 0;
virtual std::string get_rb_name(uint32_t lcid) = 0;
virtual uint32_t get_lcid_for_eps_bearer(const uint32_t& eps_bearer_id) = 0;
virtual bool has_nr_dc() = 0;
};
// RRC interface for PDCP

@ -110,10 +110,13 @@ public:
bool connection_request(srslte::establishment_cause_t cause, srslte::unique_byte_buffer_t dedicated_info_nas);
void set_ue_identity(srslte::s_tmsi_t s_tmsi);
void paging_completed(bool outcome) final;
#ifdef HAVE_5GNR
bool has_nr_dc();
// NR interface
#ifdef HAVE_5GNR
void new_cell_meas_nr(const std::vector<phy_meas_nr_t>& meas);
#endif
// PHY interface
void in_sync() final;
void out_of_sync() final;

@ -2516,6 +2516,16 @@ uint32_t rrc::get_drb_id_for_eps_bearer(const uint32_t& eps_bearer_id)
return 0;
}
bool rrc::has_nr_dc()
{
bool has_nr_dc = false;
#ifdef HAVE_5GNR
if (args.release >= 15)
has_nr_dc = true;
#endif
return has_nr_dc;
}
void rrc::add_mrb(uint32_t lcid, uint32_t port)
{
gw->add_mch_port(lcid, port);

@ -128,6 +128,7 @@ public:
void enable_capabilities() {}
uint32_t get_lcid_for_eps_bearer(const uint32_t& eps_bearer_id) { return 0; }
void paging_completed(bool outcome) {}
bool has_nr_dc() { return false; }
private:
nas* nas_ptr;

Loading…
Cancel
Save