diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-14 12:56:58 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-18 11:38:38 +0100 |
commit | 05f9f59a6728a46738c3b41f74336059fcae77af (patch) | |
tree | 33a14303445a365c7b4e7e8f7a7008bf8acd09a4 /src/pcu_vty.c | |
parent | a281495008082768be15b5aa63271cce1ee128e0 (diff) |
Move dl_tbf_preemptive_retransmission field from BTS to PCU
Change-Id: I3ab32fcafe83f3ecb116a5b8a05f58f3fddc5451
Diffstat (limited to 'src/pcu_vty.c')
-rw-r--r-- | src/pcu_vty.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/pcu_vty.c b/src/pcu_vty.c index 06e16749..727712df 100644 --- a/src/pcu_vty.c +++ b/src/pcu_vty.c @@ -231,7 +231,7 @@ static int config_write_pcu(struct vty *vty) vty_out(vty, " two-phase-access%s", VTY_NEWLINE); vty_out(vty, " alpha %d%s", the_pcu->vty.alpha, VTY_NEWLINE); vty_out(vty, " gamma %d%s", the_pcu->vty.gamma * 2, VTY_NEWLINE); - if (!bts->dl_tbf_preemptive_retransmission) + if (!the_pcu->vty.dl_tbf_preemptive_retransmission) vty_out(vty, " no dl-tbf-preemptive-retransmission%s", VTY_NEWLINE); if (strcmp(the_pcu->pcu_sock_path, PCU_SOCK_DEFAULT)) vty_out(vty, " pcu-socket %s%s", the_pcu->pcu_sock_path, VTY_NEWLINE); @@ -869,10 +869,7 @@ DEFUN_ATTR(cfg_pcu_dl_tbf_preemptive_retransmission, RETRANSMISSION_STR " (enabled by default)", CMD_ATTR_IMMEDIATE) { - struct gprs_rlcmac_bts *bts = bts_main_data(); - - bts->dl_tbf_preemptive_retransmission = true; - + the_pcu->vty.dl_tbf_preemptive_retransmission = true; return CMD_SUCCESS; } @@ -882,10 +879,7 @@ DEFUN_ATTR(cfg_pcu_no_dl_tbf_preemptive_retransmission, NO_STR RETRANSMISSION_STR, CMD_ATTR_IMMEDIATE) { - struct gprs_rlcmac_bts *bts = bts_main_data(); - - bts->dl_tbf_preemptive_retransmission = false; - + the_pcu->vty.dl_tbf_preemptive_retransmission = false; return CMD_SUCCESS; } |