mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
According to 3GPP TS 37.324, there shall be only one default DRB per SDAP entity (per PDU session). The previous implementation incorrectly marked all DRBs as default, violating this requirement. Changes: - Add default_drb field to nr_sdap_configuration_t to track the default DRB ID per PDU session - Arbitrary set default DRB to the first DRB added when creating bearers in a PDU session - Update nr_rrc_build_sdap_config_ie() to accept defaultDRB (bool) parameter instead of hardcoding true - Use tracked default_drb value when building RRC SDAP Config IE - Use tracked default_drb value when building E1AP DRB setup structure Also: - Fix include style in nr_sdap_configuration.h (<stdbool.h> instead of "stdbool.h") Signed-off-by: Guido Casati <guido.casati@openairinterface.org>
20 lines
359 B
C
20 lines
359 B
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
#ifndef _NR_SDAP_CONFIGURATION_H_
|
|
#define _NR_SDAP_CONFIGURATION_H_
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
// SDAP Headers
|
|
bool header_dl_absent;
|
|
bool header_ul_absent;
|
|
// Default DRB
|
|
uint8_t default_drb;
|
|
} nr_sdap_configuration_t;
|
|
|
|
#endif /* _NR_SDAP_CONFIGURATION_H_ */
|