struct gsm_bts_model: rename power_ctrl_{set->send}_c0_power_red
Change-Id: I13d9e6ea2a2b7b11f92532d377e71f0e83974622 Related: SYS#6435
This commit is contained in:
parent
856c6dc2f5
commit
253f67f625
|
@ -300,7 +300,7 @@ struct gsm_bts_model {
|
|||
/* (Optional) function for sending default MS/BS Power Control paramaters */
|
||||
int (*power_ctrl_send_def_params)(const struct gsm_bts_trx *trx);
|
||||
/* (Optional) function for toggling BCCH carrier power reduction operation */
|
||||
int (*power_ctrl_set_c0_power_red)(const struct gsm_bts *bts, const uint8_t red);
|
||||
int (*power_ctrl_send_c0_power_red)(const struct gsm_bts *bts, const uint8_t red);
|
||||
|
||||
void (*config_write_bts)(struct vty *vty, struct gsm_bts *bts);
|
||||
void (*config_write_trx)(struct vty *vty, struct gsm_bts_trx *trx);
|
||||
|
|
|
@ -986,10 +986,10 @@ int gsm_bts_set_c0_power_red(struct gsm_bts *bts, const uint8_t red)
|
|||
|
||||
if (!osmo_bts_has_feature(&bts->features, BTS_FEAT_BCCH_POWER_RED))
|
||||
return -ENOTSUP;
|
||||
if (bts->model->power_ctrl_set_c0_power_red == NULL)
|
||||
if (bts->model->power_ctrl_send_c0_power_red == NULL)
|
||||
return -ENOTSUP;
|
||||
|
||||
rc = bts->model->power_ctrl_set_c0_power_red(bts, red);
|
||||
rc = bts->model->power_ctrl_send_c0_power_red(bts, red);
|
||||
if (rc != 0)
|
||||
return rc;
|
||||
|
||||
|
|
|
@ -159,8 +159,7 @@ void osmobts_enc_power_params_osmo_ext(struct msgb *msg, const struct gsm_power_
|
|||
*ie_len = msg->tail - (ie_len + 1);
|
||||
}
|
||||
|
||||
static int power_ctrl_set_c0_power_red(const struct gsm_bts *bts,
|
||||
const uint8_t red)
|
||||
static int power_ctrl_send_c0_power_red(const struct gsm_bts *bts, const uint8_t red)
|
||||
{
|
||||
struct abis_rsl_dchan_hdr *dh;
|
||||
struct msgb *msg;
|
||||
|
@ -198,7 +197,7 @@ int bts_model_osmobts_init(void)
|
|||
model_osmobts.force_combined_si = false;
|
||||
|
||||
/* Power control API */
|
||||
model_osmobts.power_ctrl_set_c0_power_red = &power_ctrl_set_c0_power_red;
|
||||
model_osmobts.power_ctrl_send_c0_power_red = &power_ctrl_send_c0_power_red;
|
||||
|
||||
model_osmobts.features.data = &model_osmobts._features_data[0];
|
||||
model_osmobts.features.data_len =
|
||||
|
|
Loading…
Reference in New Issue