cosmetic: s/repeated_acch_capability/rep_acch_cap/g

Shorter symbol names are easier to read.

Change-Id: Ib1d51f91139b4c2fe794e37fc8543b2d7a9b9c07
Related: SYS#5114
This commit is contained in:
Vadim Yanitskiy 2021-10-22 02:52:28 +03:00
parent dffb6fac25
commit ea0247e26c
6 changed files with 23 additions and 23 deletions

View File

@ -304,7 +304,7 @@ struct gsm_lchan {
/* ECU (Error Concealment Unit) state */
struct osmo_ecu_state *ecu_state;
struct abis_rsl_osmo_rep_acch_cap repeated_acch_capability;
struct abis_rsl_osmo_rep_acch_cap rep_acch_cap;
bool repeated_dl_facch_active;
bool repeated_ul_sacch_active;
bool repeated_dl_sacch_active;

View File

@ -1006,7 +1006,7 @@ static inline struct msgb *lapdm_phsap_dequeue_msg_facch(struct gsm_lchan *lchan
* If the MS explicitly indicated that repeated ACCH is
* supported, than all FACCH frames may be repeated
* see also: 3GPP TS 44.006, section 10.3). */
if (!(lchan->repeated_acch_capability.dl_facch_all || msg->data[0] & 0x02))
if (!(lchan->rep_acch_cap.dl_facch_all || msg->data[0] & 0x02))
return msg;
/* ... and store the message buffer for repetition. */
@ -1147,7 +1147,7 @@ static int l1sap_ph_rts_ind(struct gsm_bts_trx *trx,
p[0] |= 0x40; /* See also: 3GPP TS 44.004, section 7.1 */
p[1] = lchan->ta_ctrl.current;
le = &lchan->lapdm_ch.lapdm_acch;
if (lchan->repeated_acch_capability.dl_sacch) {
if (lchan->rep_acch_cap.dl_sacch) {
/* Check if MS requests SACCH repetition and update state accordingly */
if (lchan->meas.l1_info.srr_sro) {
if (lchan->repeated_dl_sacch_active == false)
@ -1433,13 +1433,13 @@ static void repeated_ul_sacch_active_decision(struct gsm_lchan *lchan,
* there are no uplink SACCH repetition capabilities present.
* However If the repeated UL-SACCH capabilities vanish for whatever
* reason, we must be sure that UL-SACCH repetition is disabled. */
if (!lchan->repeated_acch_capability.ul_sacch) {
if (!lchan->rep_acch_cap.ul_sacch) {
lchan->repeated_ul_sacch_active = false;
goto out;
}
/* Threshold disabled (repetition is always on) */
if (lchan->repeated_acch_capability.rxqual == 0) {
if (lchan->rep_acch_cap.rxqual == 0) {
lchan->repeated_ul_sacch_active = true;
goto out;
}
@ -1454,8 +1454,8 @@ static void repeated_ul_sacch_active_decision(struct gsm_lchan *lchan,
* of the table in GSM 05.08, section 8.2.4. The lower vector is just
* the upper vector shifted by 2. */
upper = ber10k_by_rxqual_upper[lchan->repeated_acch_capability.rxqual];
lower = ber10k_by_rxqual_lower[lchan->repeated_acch_capability.rxqual];
upper = ber10k_by_rxqual_upper[lchan->rep_acch_cap.rxqual];
lower = ber10k_by_rxqual_lower[lchan->rep_acch_cap.rxqual];
/* If upper/rxqual == 0, then repeated UL-SACCH is always on */
if (ber10k >= upper)

View File

@ -67,7 +67,7 @@ static int t200_by_lchan(int *t200_ms_dcch, int *t200_ms_acch, struct gsm_lchan
t200_ms_acch[DL_SAPI0] = bts->t200_ms[T200_SACCH_SDCCH] + fn_advance_ms;
t200_ms_acch[DL_SAPI3] = bts->t200_ms[T200_SACCH_SDCCH] + fn_advance_ms;
if (lchan->repeated_acch_capability.dl_facch_all && (lchan->type == GSM_LCHAN_TCH_F || lchan->type == GSM_LCHAN_TCH_H)) {
if (lchan->rep_acch_cap.dl_facch_all && (lchan->type == GSM_LCHAN_TCH_F || lchan->type == GSM_LCHAN_TCH_H)) {
t200_ms_acch[DL_SAPI0] *= 2;
t200_ms_acch[DL_SAPI3] *= 2;
}

View File

@ -804,14 +804,14 @@ static void repeated_dl_facch_active_decision(struct gsm_lchan *lchan,
* there are no FACCH repetition capabilities present. However If the
* repeated FACCH capabilities vanish for whatever reason, we must be
* sure that FACCH repetition is disabled. */
if (!lchan->repeated_acch_capability.dl_facch_cmd
&& !lchan->repeated_acch_capability.dl_facch_all) {
if (!lchan->rep_acch_cap.dl_facch_cmd
&& !lchan->rep_acch_cap.dl_facch_all) {
lchan->repeated_dl_facch_active = false;
goto out;
}
/* Threshold disabled (always on) */
if (lchan->repeated_acch_capability.rxqual == 0) {
if (lchan->rep_acch_cap.rxqual == 0) {
lchan->repeated_dl_facch_active = true;
goto out;
}
@ -838,9 +838,9 @@ static void repeated_dl_facch_active_decision(struct gsm_lchan *lchan,
/* If the RXQUAL level at the MS drops under a certain threshold
* we enable FACCH repetition. */
upper = lchan->repeated_acch_capability.rxqual;
upper = lchan->rep_acch_cap.rxqual;
if (upper > 2)
lower = lchan->repeated_acch_capability.rxqual - 2;
lower = lchan->rep_acch_cap.rxqual - 2;
else
lower = 0;

View File

@ -1574,16 +1574,16 @@ static int parse_repeated_acch_capability(struct gsm_lchan *lchan, struct tlv_pa
* should be communicated in the RSL CHANNEL ACTIVATION. For osmo-bts
* we will use a propritary IE. */
memset(&lchan->repeated_acch_capability, 0, sizeof(lchan->repeated_acch_capability));
memset(&lchan->rep_acch_cap, 0, sizeof(lchan->rep_acch_cap));
if (!TLVP_PRES_LEN(tp, RSL_IE_OSMO_REP_ACCH_CAP, sizeof(lchan->repeated_acch_capability)))
if (!TLVP_PRES_LEN(tp, RSL_IE_OSMO_REP_ACCH_CAP, sizeof(lchan->rep_acch_cap)))
return 0;
if (!osmo_bts_has_feature(lchan->ts->trx->bts->features, BTS_FEAT_ACCH_REP))
return -RSL_ERR_OPT_IE_ERROR;
memcpy(&lchan->repeated_acch_capability, TLVP_VAL(tp, RSL_IE_OSMO_REP_ACCH_CAP),
sizeof(lchan->repeated_acch_capability));
memcpy(&lchan->rep_acch_cap, TLVP_VAL(tp, RSL_IE_OSMO_REP_ACCH_CAP),
sizeof(lchan->rep_acch_cap));
return 0;
}

View File

@ -1707,18 +1707,18 @@ static void lchan_acch_rep_state_dump(struct vty *vty, unsigned int indent,
{
cfg_out(vty, "ACCH repetition:%s", VTY_NEWLINE);
indent += 2;
if (lchan->repeated_acch_capability.rxqual)
if (lchan->rep_acch_cap.rxqual)
cfg_out(vty, "Enable RXQUAL threshold: %u%s",
lchan->repeated_acch_capability.rxqual, VTY_NEWLINE);
lchan->rep_acch_cap.rxqual, VTY_NEWLINE);
else
cfg_out(vty, "Enable RXQUAL threshold: (none, alway on)%s",
VTY_NEWLINE);
cfg_out(vty, "DL-FACCH:%s", VTY_NEWLINE);
indent += 2;
if (lchan->repeated_acch_capability.dl_facch_all)
if (lchan->rep_acch_cap.dl_facch_all)
cfg_out(vty, "retramsit all LAPDM block types%s", VTY_NEWLINE);
else if (lchan->repeated_acch_capability.dl_facch_cmd)
else if (lchan->rep_acch_cap.dl_facch_cmd)
cfg_out(vty, "retramsit only LAPDM command blocks%s",
VTY_NEWLINE);
else
@ -1732,7 +1732,7 @@ static void lchan_acch_rep_state_dump(struct vty *vty, unsigned int indent,
cfg_out(vty, "DL-SACCH:%s", VTY_NEWLINE);
indent += 2;
if (lchan->repeated_acch_capability.ul_sacch)
if (lchan->rep_acch_cap.ul_sacch)
cfg_out(vty, "retramsit all SACCH blocks for SAPI=0%s",
VTY_NEWLINE);
else
@ -1746,7 +1746,7 @@ static void lchan_acch_rep_state_dump(struct vty *vty, unsigned int indent,
cfg_out(vty, "UL-SACCH:%s", VTY_NEWLINE);
indent += 2;
if (lchan->repeated_acch_capability.dl_sacch)
if (lchan->rep_acch_cap.dl_sacch)
cfg_out(vty, "retramsit all SACCH blocks for SAPI=0%s",
VTY_NEWLINE);
else