aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_vty.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-01-14 12:48:50 +0100
committerpespin <pespin@sysmocom.de>2021-01-18 10:37:05 +0000
commit03de898d193e7e73c0cb700a2d00e2b6a913c458 (patch)
treeb1c2291c0bbb3f66917822a08f9843634ed0411c /src/pcu_vty.c
parent924aaad4bcb014914eef579c9425bb819ad034ff (diff)
Move force_two_phase field from BTS to PCU
Diffstat (limited to 'src/pcu_vty.c')
-rw-r--r--src/pcu_vty.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/pcu_vty.c b/src/pcu_vty.c
index a2c58eb0..83fb166f 100644
--- a/src/pcu_vty.c
+++ b/src/pcu_vty.c
@@ -227,7 +227,7 @@ static int config_write_pcu(struct vty *vty)
vty_out(vty, " alloc-algorithm b%s", VTY_NEWLINE);
if (the_pcu->alloc_algorithm == alloc_algorithm_dynamic)
vty_out(vty, " alloc-algorithm dynamic%s", VTY_NEWLINE);
- if (bts->force_two_phase)
+ if (the_pcu->vty.force_two_phase)
vty_out(vty, " two-phase-access%s", VTY_NEWLINE);
vty_out(vty, " alpha %d%s", bts->alpha, VTY_NEWLINE);
vty_out(vty, " gamma %d%s", bts->gamma * 2, VTY_NEWLINE);
@@ -782,10 +782,7 @@ DEFUN_ATTR(cfg_pcu_two_phase,
"Force two phase access when MS requests single phase access\n",
CMD_ATTR_IMMEDIATE)
{
- struct gprs_rlcmac_bts *bts = bts_main_data();
-
- bts->force_two_phase = 1;
-
+ the_pcu->vty.force_two_phase = 1;
return CMD_SUCCESS;
}
@@ -795,10 +792,7 @@ DEFUN_ATTR(cfg_pcu_no_two_phase,
NO_STR "Only use two phase access when requested my MS\n",
CMD_ATTR_IMMEDIATE)
{
- struct gprs_rlcmac_bts *bts = bts_main_data();
-
- bts->force_two_phase = 0;
-
+ the_pcu->vty.force_two_phase = 0;
return CMD_SUCCESS;
}