Skip to content

Commit 7b4049e

Browse files
committed
du-high: fix generation of ASN.1 cellGroup, when LCID and DRB-ID are not in the same order
1 parent f7e6698 commit 7b4049e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/du/du_high/du_manager/converters/asn1_rrc_config_helpers.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,6 +3106,11 @@ static static_vector<rlc_bearer_config, MAX_NOF_RB_LCIDS> fill_rlc_bearers(const
31063106
bearer.rlc_cfg = &drb.rlc_cfg;
31073107
bearer.mac_cfg = &drb.mac_cfg;
31083108
}
3109+
3110+
// Note: DRB ID and LCID assignments are not necessarily in the same order.
3111+
std::sort(
3112+
list.begin(), list.end(), [](const rlc_bearer_config& a, const rlc_bearer_config& b) { return a.lcid < b.lcid; });
3113+
31093114
return list;
31103115
}
31113116

0 commit comments

Comments
 (0)