Move ns_dialect field from BTS to PCU
Change-Id: Iffb22b776b91f93d6d2a7ccfa47deeecc22c33f0
diff --git a/src/pcu_vty.c b/src/pcu_vty.c
index 3abfba7..b0c941d 100644
--- a/src/pcu_vty.c
+++ b/src/pcu_vty.c
@@ -243,7 +243,7 @@
}
}
- if (bts->ns_dialect == NS2_DIALECT_SNS)
+ if (the_pcu->vty.ns_dialect == NS2_DIALECT_SNS)
vty_out(vty, " gb-dialect ip-sns%s", VTY_NEWLINE);
else
vty_out(vty, " gb-dialect classic%s", VTY_NEWLINE);
@@ -1067,12 +1067,10 @@
"Classic Gb interface with NS-{RESET,BLOCK,UNBLOCK} and static configuration\n"
"Modern Gb interface with IP-SNS (Sub Network Service) and dynamic configuration\n")
{
- struct gprs_rlcmac_bts *bts = bts_main_data();
-
if (!strcmp(argv[0], "ip-sns")) {
- bts->ns_dialect = NS2_DIALECT_SNS;
+ the_pcu->vty.ns_dialect = NS2_DIALECT_SNS;
} else {
- bts->ns_dialect = NS2_DIALECT_IPACCESS;
+ the_pcu->vty.ns_dialect = NS2_DIALECT_IPACCESS;
}
return CMD_SUCCESS;