Files
openairinterface5g/openair2/SDAP/nr_sdap/nr_sdap_configuration.h
Guido Casati e041a2a078 QoS Handling: set default DRB in SDAP entity to first DRB added
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>
2026-05-04 12:03:27 +02:00

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_ */