Move cs_downgrade_threshold field from BTS to PCU

Change-Id: I3e1c65eb3cccff565d5d84588bdce93a47909a0f
diff --git a/src/pcu_vty.c b/src/pcu_vty.c
index c830400..e0edf91 100644
--- a/src/pcu_vty.c
+++ b/src/pcu_vty.c
@@ -143,9 +143,9 @@
 	else
 		vty_out(vty, " no cs threshold%s", VTY_NEWLINE);
 
-	if (bts->cs_downgrade_threshold)
+	if (the_pcu->vty.cs_downgrade_threshold)
 		vty_out(vty, " cs downgrade-threshold %d%s",
-			bts->cs_downgrade_threshold, VTY_NEWLINE);
+			the_pcu->vty.cs_downgrade_threshold, VTY_NEWLINE);
 	else
 		vty_out(vty, " no cs downgrade-threshold%s", VTY_NEWLINE);
 
@@ -947,10 +947,7 @@
 	   CS_STR CS_DOWNGRADE_STR "downgrade if less octets left\n",
 	   CMD_ATTR_IMMEDIATE)
 {
-	struct gprs_rlcmac_bts *bts = bts_main_data();
-
-	bts->cs_downgrade_threshold = atoi(argv[0]);
-
+	the_pcu->vty.cs_downgrade_threshold = atoi(argv[0]);
 	return CMD_SUCCESS;
 }
 
@@ -960,10 +957,7 @@
 	   NO_STR CS_STR CS_DOWNGRADE_STR,
 	   CMD_ATTR_IMMEDIATE)
 {
-	struct gprs_rlcmac_bts *bts = bts_main_data();
-
-	bts->cs_downgrade_threshold = 0;
-
+	the_pcu->vty.cs_downgrade_threshold = 0;
 	return CMD_SUCCESS;
 }