Move ws_* fields from BTS to PCU
Change-Id: I997bc52f0d924c8f2a0b1d6cf23af98828ad4258
diff --git a/src/pcu_vty.c b/src/pcu_vty.c
index d107548..5e9da45 100644
--- a/src/pcu_vty.c
+++ b/src/pcu_vty.c
@@ -195,7 +195,7 @@
the_pcu->vty.max_mcs_ul, VTY_NEWLINE);
}
- vty_out(vty, " window-size %d %d%s", bts->ws_base, bts->ws_pdch,
+ vty_out(vty, " window-size %d %d%s", the_pcu->vty.ws_base, the_pcu->vty.ws_pdch,
VTY_NEWLINE);
if (the_pcu->vty.dl_arq_type == EGPRS_ARQ2)
@@ -557,13 +557,12 @@
"Base value (b)\n"
"Factor for number of PDCH (f)")
{
- struct gprs_rlcmac_bts *bts = bts_main_data();
uint16_t b = atoi(argv[0]);
- bts->ws_base = b;
+ the_pcu->vty.ws_base = b;
if (argc > 1) {
uint16_t f = atoi(argv[1]);
- bts->ws_pdch = f;
+ the_pcu->vty.ws_pdch = f;
}
return CMD_SUCCESS;