add flag for unused function arguments in common folder CMakeLists
(not enforced because of fmtlog external dependency)
This commit is contained in:
@@ -140,8 +140,9 @@ static bool pdcp_config_req_asn1(const protocol_ctxt_t *const ctxt_pP,
|
||||
uint8_t *const kRRCint_pP,
|
||||
uint8_t *const kUPenc_pP);
|
||||
|
||||
void *pdcp_stats_thread(void *param) {
|
||||
|
||||
void *pdcp_stats_thread(void *param)
|
||||
{
|
||||
UNUSED(param);
|
||||
FILE *fd;
|
||||
int old_byte_cnt[MAX_MOBILES_PER_ENB][NB_RB_MAX],old_byte_cnt_rx[MAX_MOBILES_PER_ENB][NB_RB_MAX];
|
||||
for (int i=0;i<MAX_MOBILES_PER_ENB;i++)
|
||||
@@ -554,9 +555,7 @@ bool pdcp_data_ind(const protocol_ctxt_t *const ctxt_pP,
|
||||
const MBMS_flag_t MBMS_flagP,
|
||||
const rb_id_t rb_idP,
|
||||
const sdu_size_t sdu_buffer_sizeP,
|
||||
uint8_t *const sdu_buffer_pP,
|
||||
const uint32_t *const srcID,
|
||||
const uint32_t *const dstID)
|
||||
uint8_t *const sdu_buffer_pP)
|
||||
//-----------------------------------------------------------------------------
|
||||
{
|
||||
pdcp_t *pdcp_p = NULL;
|
||||
@@ -1857,8 +1856,6 @@ static bool pdcp_config_req_asn1(const protocol_ctxt_t *const ctxt_pP,
|
||||
pdcp_config_set_security(
|
||||
ctxt_pP,
|
||||
pdcp_pP,
|
||||
rb_idP,
|
||||
lc_idP,
|
||||
security_modeP,
|
||||
kRRCenc_pP,
|
||||
kRRCint_pP,
|
||||
@@ -1878,8 +1875,6 @@ static bool pdcp_config_req_asn1(const protocol_ctxt_t *const ctxt_pP,
|
||||
pdcp_config_set_security(
|
||||
ctxt_pP,
|
||||
pdcp_pP,
|
||||
rb_idP,
|
||||
lc_idP,
|
||||
security_modeP,
|
||||
kRRCenc_pP,
|
||||
kRRCint_pP,
|
||||
@@ -1942,8 +1937,6 @@ static bool pdcp_config_req_asn1(const protocol_ctxt_t *const ctxt_pP,
|
||||
pdcp_config_set_security(
|
||||
ctxt_pP,
|
||||
pdcp_pP,
|
||||
rb_idP,
|
||||
lc_idP,
|
||||
security_modeP,
|
||||
kRRCenc_pP,
|
||||
kRRCint_pP,
|
||||
@@ -1963,8 +1956,6 @@ void
|
||||
pdcp_config_set_security(
|
||||
const protocol_ctxt_t *const ctxt_pP,
|
||||
pdcp_t *const pdcp_pP,
|
||||
const rb_id_t rb_idP,
|
||||
const uint16_t lc_idP,
|
||||
const uint8_t security_modeP,
|
||||
uint8_t *const kRRCenc,
|
||||
uint8_t *const kRRCint,
|
||||
|
||||
@@ -240,8 +240,6 @@ bool cu_f1u_data_req(protocol_ctxt_t *ctxt_pP,
|
||||
* \param[in] rab_id Radio Bearer ID
|
||||
* \param[in] sdu_buffer_size Size of incoming SDU in bytes
|
||||
* \param[in] sdu_buffer Buffer carrying SDU
|
||||
* \param[in] srcID
|
||||
* \param[in] dstID
|
||||
* \return TRUE on success, false otherwise
|
||||
* \note None
|
||||
* @ingroup _pdcp
|
||||
@@ -251,9 +249,7 @@ bool pdcp_data_ind(const protocol_ctxt_t *const ctxt_pP,
|
||||
const MBMS_flag_t MBMS_flagP,
|
||||
const rb_id_t rb_idP,
|
||||
const sdu_size_t sdu_buffer_sizeP,
|
||||
uint8_t *const sdu_buffer_pP,
|
||||
const uint32_t *const srcID,
|
||||
const uint32_t *const dstID);
|
||||
uint8_t *const sdu_buffer_pP);
|
||||
|
||||
/*! \fn void rrc_pdcp_config_req(const protocol_ctxt_t* const ,uint32_t,rb_id_t,uint8_t)
|
||||
* \brief This functions initializes relevant PDCP entity
|
||||
|
||||
@@ -129,8 +129,11 @@ bool pdcp_serialize_control_pdu_for_pdcp_status_report(unsigned char* pdu_buffer
|
||||
int pdcp_netlink_dequeue_element(const protocol_ctxt_t* const ctxt_pP,
|
||||
struct pdcp_netlink_element_s **data_ppP);
|
||||
|
||||
void pdcp_config_set_security(const protocol_ctxt_t* const ctxt_pP, pdcp_t *pdcp_pP, rb_id_t rb_idP,
|
||||
uint16_t lc_idP, uint8_t security_modeP, uint8_t *kRRCenc_pP, uint8_t *kRRCint_pP, uint8_t *kUPenc_pP);
|
||||
void pdcp_config_set_security(const protocol_ctxt_t* const ctxt_pP,
|
||||
pdcp_t *pdcp_pP,uint8_t security_modeP,
|
||||
uint8_t *kRRCenc_pP,
|
||||
uint8_t *kRRCint_pP,
|
||||
uint8_t *kUPenc_pP);
|
||||
|
||||
int pdcp_apply_security(const protocol_ctxt_t* const ctxt_pP,
|
||||
pdcp_t *pdcp_entity,
|
||||
|
||||
@@ -398,7 +398,7 @@ rb_found:
|
||||
exit(1);
|
||||
}
|
||||
memcpy(memblock, buf, size);
|
||||
if (!pdcp_data_ind(&ctx, is_srb, is_mbms, rb_id, size, memblock, NULL, NULL)) {
|
||||
if (!pdcp_data_ind(&ctx, is_srb, is_mbms, rb_id, size, memblock)) {
|
||||
LOG_E(RLC, "ERROR: pdcp_data_ind failed (is_srb %d rb_id %d rnti %x)\n", is_srb, rb_id, ue->rnti);
|
||||
/* what to do in case of failure? for the moment: nothing */
|
||||
}
|
||||
|
||||
@@ -88,8 +88,6 @@ static const float RSRQ_meas_mapping[35] = {-19, -18.5, -18, -17.5, -17, -16.5,
|
||||
extern void pdcp_config_set_security(
|
||||
const protocol_ctxt_t *const ctxt_pP,
|
||||
pdcp_t *const pdcp_pP,
|
||||
const rb_id_t rb_idP,
|
||||
const uint16_t lc_idP,
|
||||
const uint8_t security_modeP,
|
||||
uint8_t *const kRRCenc,
|
||||
uint8_t *const kRRCint,
|
||||
@@ -1514,7 +1512,7 @@ rrc_ue_process_securityModeCommand(
|
||||
derive_key_nas(UP_ENC_ALG, UE_rrc_inst[ctxt_pP->module_id].ciphering_algorithm, UE_rrc_inst[ctxt_pP->module_id].kenb, kUPenc);
|
||||
|
||||
if (securityMode != 0xff) {
|
||||
pdcp_config_set_security(ctxt_pP, pdcp_p, 0, 0,
|
||||
pdcp_config_set_security(ctxt_pP, pdcp_p,
|
||||
UE_rrc_inst[ctxt_pP->module_id].ciphering_algorithm
|
||||
| (UE_rrc_inst[ctxt_pP->module_id].integrity_algorithm << 4),
|
||||
kRRCenc, kRRCint, kUPenc);
|
||||
|
||||
@@ -502,8 +502,6 @@ rrc_pdcp_config_security(
|
||||
pdcp_config_set_security(
|
||||
ctxt_pP,
|
||||
pdcp_p,
|
||||
DCCH,
|
||||
DCCH+2,
|
||||
(send_security_mode_command == true) ?
|
||||
0 | (ue_context_pP->ue_context.integrity_algorithm << 4) :
|
||||
(ue_context_pP->ue_context.ciphering_algorithm ) |
|
||||
|
||||
Reference in New Issue
Block a user