aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_pcu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gprs_pcu.c')
-rw-r--r--src/gprs_pcu.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gprs_pcu.c b/src/gprs_pcu.c
index bc9b350a..b2806524 100644
--- a/src/gprs_pcu.c
+++ b/src/gprs_pcu.c
@@ -109,8 +109,7 @@ void gprs_pcu_set_initial_cs(struct gprs_pcu *pcu, uint8_t cs_dl, uint8_t cs_ul)
the_pcu->vty.initial_cs_ul = cs_ul;
/*TODO: once we support multiple bts, foreach(bts) apply */
- struct gprs_rlcmac_bts *bts = bts_data(pcu->bts);
- bts_recalc_initial_cs(bts);
+ bts_recalc_initial_cs(pcu->bts);
}
void gprs_pcu_set_initial_mcs(struct gprs_pcu *pcu, uint8_t mcs_dl, uint8_t mcs_ul)
{
@@ -118,8 +117,7 @@ void gprs_pcu_set_initial_mcs(struct gprs_pcu *pcu, uint8_t mcs_dl, uint8_t mcs_
the_pcu->vty.initial_mcs_ul = mcs_ul;
/*TODO: once we support multiple bts, foreach(bts) apply */
- struct gprs_rlcmac_bts *bts = bts_data(pcu->bts);
- bts_recalc_initial_mcs(bts);
+ bts_recalc_initial_mcs(pcu->bts);
}
void gprs_pcu_set_max_cs(struct gprs_pcu *pcu, uint8_t cs_dl, uint8_t cs_ul)
@@ -127,14 +125,12 @@ void gprs_pcu_set_max_cs(struct gprs_pcu *pcu, uint8_t cs_dl, uint8_t cs_ul)
the_pcu->vty.max_cs_dl = cs_dl;
the_pcu->vty.max_cs_ul = cs_ul;
/*TODO: once we support multiple bts, foreach(bts) apply */
- struct gprs_rlcmac_bts *bts = bts_data(pcu->bts);
- bts_recalc_max_cs(bts);
+ bts_recalc_max_cs(pcu->bts);
}
void gprs_pcu_set_max_mcs(struct gprs_pcu *pcu, uint8_t mcs_dl, uint8_t mcs_ul)
{
the_pcu->vty.max_mcs_dl = mcs_dl;
the_pcu->vty.max_mcs_ul = mcs_ul;
/* TODO: once we support multiple bts, foreach(bts) apply */
- struct gprs_rlcmac_bts *bts = bts_data(pcu->bts);
- bts_recalc_max_mcs(bts);
+ bts_recalc_max_mcs(pcu->bts);
}