mirror of https://github.com/PentHertz/srsLTE.git
Fix RRC tx in eNB to only send messages with NAS on SRB2
This commit is contained in:
parent
f02694dd3e
commit
611c5e9814
|
@ -1089,9 +1089,11 @@ bool rrc::ue::send_dl_dcch(const dl_dcch_msg_s* dl_dcch_msg, srslte::unique_byte
|
||||||
}
|
}
|
||||||
pdu->N_bytes = (uint32_t)bref.distance_bytes();
|
pdu->N_bytes = (uint32_t)bref.distance_bytes();
|
||||||
|
|
||||||
// send on SRB2 if user is fully registered (after RRC reconfig complete)
|
uint32_t lcid = RB_ID_SRB1;
|
||||||
uint32_t lcid =
|
if (dl_dcch_msg->msg.c1().type() == dl_dcch_msg_type_c::c1_c_::types_opts::dl_info_transfer) {
|
||||||
parent->rlc->has_bearer(rnti, RB_ID_SRB2) && state == RRC_STATE_REGISTERED ? RB_ID_SRB2 : RB_ID_SRB1;
|
// send messages with NAS on SRB2 if user is fully registered (after RRC reconfig complete)
|
||||||
|
lcid = parent->rlc->has_bearer(rnti, RB_ID_SRB2) && state == RRC_STATE_REGISTERED ? RB_ID_SRB2 : RB_ID_SRB1;
|
||||||
|
}
|
||||||
|
|
||||||
char buf[32] = {};
|
char buf[32] = {};
|
||||||
sprintf(buf, "SRB%d - rnti=0x%x", lcid, rnti);
|
sprintf(buf, "SRB%d - rnti=0x%x", lcid, rnti);
|
||||||
|
|
Loading…
Reference in New Issue