diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-14 13:08:02 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-18 11:54:53 +0100 |
commit | 97296b299cab6ac9e66082bb4c65da7422f0db12 (patch) | |
tree | 7949d4a091b181a22026be6d6a211213c5d425b4 /src/pcu_vty.c | |
parent | 05f9f59a6728a46738c3b41f74336059fcae77af (diff) |
Move dl_arq_type field from BTS to PCU
Change-Id: I0b82ab59edd58d60e5581c707dc49f58de0ba203
Diffstat (limited to 'src/pcu_vty.c')
-rw-r--r-- | src/pcu_vty.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/pcu_vty.c b/src/pcu_vty.c index 727712df..ef868795 100644 --- a/src/pcu_vty.c +++ b/src/pcu_vty.c @@ -198,9 +198,8 @@ static int config_write_pcu(struct vty *vty) vty_out(vty, " window-size %d %d%s", bts->ws_base, bts->ws_pdch, VTY_NEWLINE); - if (bts->dl_arq_type) - vty_out(vty, " egprs dl arq-type arq2%s", - VTY_NEWLINE); + if (the_pcu->vty.dl_arq_type == EGPRS_ARQ2) + vty_out(vty, " egprs dl arq-type arq2%s", VTY_NEWLINE); if (bts->force_llc_lifetime == 0xffff) vty_out(vty, " queue lifetime infinite%s", VTY_NEWLINE); @@ -574,12 +573,10 @@ DEFUN_ATTR(cfg_pcu_dl_arq_type, "enable ARQ2 support", CMD_ATTR_IMMEDIATE) { - struct gprs_rlcmac_bts *bts = bts_main_data(); - if (!strcmp(argv[0], "arq2")) - bts->dl_arq_type = 1; + the_pcu->vty.dl_arq_type = EGPRS_ARQ2; else - bts->dl_arq_type = 0; + the_pcu->vty.dl_arq_type = EGPRS_ARQ1; return CMD_SUCCESS; } |