mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
rrc: simplify E1 SDAP header present flags in fill_e1_drb_to_setup
In fill_e1_drb_to_setup(), derive E1 SDAP-Config header-present booleans with logical negation instead of redundant ternary expressions. Changes: - NGAP: sDAP_Header_UL/DL assignment in fill_e1_drb_to_setup() Signed-off-by: Guido Casati <guido.casati@openairinterface.org>
This commit is contained in:
@@ -346,8 +346,8 @@ static DRB_nGRAN_to_setup_t fill_e1_drb_to_setup(const drb_t *rrc_drb,
|
||||
drb_ngran.id = rrc_drb->drb_id;
|
||||
|
||||
drb_ngran.sdap_config.defaultDRB = (session->sdap_config.default_drb == drb_ngran.id);
|
||||
drb_ngran.sdap_config.sDAP_Header_UL = session->sdap_config.header_ul_absent ? false : true;
|
||||
drb_ngran.sdap_config.sDAP_Header_DL = session->sdap_config.header_dl_absent ? false : true;
|
||||
drb_ngran.sdap_config.sDAP_Header_UL = !session->sdap_config.header_ul_absent;
|
||||
drb_ngran.sdap_config.sDAP_Header_DL = !session->sdap_config.header_dl_absent;
|
||||
|
||||
drb_ngran.pdcp_config = set_bearer_context_pdcp_config(rrc_drb->pdcp_config, um_on_default_drb, redcap_cap);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user