Skip to content

Commit 80d3e94

Browse files
cu_cp,rrc: improve function name
1 parent ac07f4c commit 80d3e94

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

include/srsran/rrc/rrc_ue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class rrc_ue_cu_cp_ue_notifier
297297
virtual void update_security_context(security::security_context sec_ctxt) = 0;
298298

299299
/// \brief Perform horizontal key derivation
300-
virtual void horizontal_key_derivation(pci_t target_pci, unsigned target_ssb_arfcn) = 0;
300+
virtual void perform_horizontal_key_derivation(pci_t target_pci, unsigned target_ssb_arfcn) = 0;
301301
};
302302

303303
/// Struct containing all information needed from the old RRC UE for Reestablishment.

lib/cu_cp/adapters/rrc_ue_adapters.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ class rrc_ue_cu_cp_ue_adapter : public rrc_ue_cu_cp_ue_notifier
154154
}
155155

156156
/// \brief Perform horizontal key derivation
157-
void horizontal_key_derivation(pci_t target_pci, unsigned target_ssb_arfcn) override
157+
void perform_horizontal_key_derivation(pci_t target_pci, unsigned target_ssb_arfcn) override
158158
{
159159
srsran_assert(ue != nullptr, "CU-CP UE must not be nullptr");
160-
return ue->get_security_manager().horizontal_key_derivation(target_pci, target_ssb_arfcn);
160+
return ue->get_security_manager().perform_horizontal_key_derivation(target_pci, target_ssb_arfcn);
161161
}
162162

163163
private:

lib/cu_cp/ue_security_manager/ue_security_manager_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void ue_security_manager::update_security_context(security::security_context sec
9191
sec_context = sec_ctxt;
9292
}
9393

94-
void ue_security_manager::horizontal_key_derivation(pci_t target_pci, unsigned target_ssb_arfcn)
94+
void ue_security_manager::perform_horizontal_key_derivation(pci_t target_pci, unsigned target_ssb_arfcn)
9595
{
9696
sec_context.horizontal_key_derivation(target_pci, target_ssb_arfcn);
9797
}

lib/cu_cp/ue_security_manager/ue_security_manager_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ue_security_manager
3737
[[nodiscard]] security::sec_as_config get_rrc_as_config() const;
3838
[[nodiscard]] security::sec_128_as_config get_rrc_128_as_config() const;
3939
void update_security_context(security::security_context sec_ctxt);
40-
void horizontal_key_derivation(pci_t target_pci, unsigned target_ssb_arfcn);
40+
void perform_horizontal_key_derivation(pci_t target_pci, unsigned target_ssb_arfcn);
4141

4242
private:
4343
security_manager_config cfg;

lib/rrc/ue/procedures/rrc_reestablishment_procedure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ void rrc_reestablishment_procedure::transfer_reestablishment_context_and_update_
240240
// freq_and_timing must be present, otherwise the RRC UE would've never been created
241241
uint32_t ssb_arfcn = context.cfg.meas_timings.begin()->freq_and_timing.value().carrier_freq;
242242
cu_cp_ue_notifier.update_security_context(old_ue_reest_context.sec_context);
243-
cu_cp_ue_notifier.horizontal_key_derivation(context.cell.pci, ssb_arfcn);
243+
cu_cp_ue_notifier.perform_horizontal_key_derivation(context.cell.pci, ssb_arfcn);
244244
logger.log_debug("Refreshed keys horizontally. pci={} ssb-arfcn={}", context.cell.pci, ssb_arfcn);
245245
}
246246

lib/rrc/ue/rrc_ue_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ rrc_ue_impl::rrc_ue_impl(rrc_pdu_f1ap_notifier& f1ap_pdu_notifie
5050
if (!rrc_context.value().is_inter_cu_handover) {
5151
cu_cp_ue_notifier.update_security_context(rrc_context.value().sec_context);
5252
}
53-
cu_cp_ue_notifier.horizontal_key_derivation(cell_.pci, cell_.ssb_arfcn);
53+
cu_cp_ue_notifier.perform_horizontal_key_derivation(cell_.pci, cell_.ssb_arfcn);
5454

5555
// Create SRBs.
5656
for (const auto& srb : rrc_context.value().srbs) {

0 commit comments

Comments
 (0)