Move dl_arq_type field from BTS to PCU
Change-Id: I0b82ab59edd58d60e5581c707dc49f58de0ba203
diff --git a/src/pcu_vty.c b/src/pcu_vty.c
index 727712d..ef86879 100644
--- a/src/pcu_vty.c
+++ b/src/pcu_vty.c
@@ -198,9 +198,8 @@
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 @@
"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;
}