From 5012e076855936ac7d248a829cd60740cea8c9e4 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sun, 6 Dec 2020 01:23:51 +0100 Subject: ns2: follow ns2 dialect changes NS2 introduce a ns dialect to differentiate between the 4 possible dialects. Related: OS#4472, OS#4890 Depends: libosmocore.git Ia118bb6f994845d84db09de7a94856f5ca573404 Change-Id: I16dc82c38eb75c2b9d1197640a955fec7df84efc --- src/pcu_vty.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/pcu_vty.c') diff --git a/src/pcu_vty.c b/src/pcu_vty.c index bf456863..800079ca 100644 --- a/src/pcu_vty.c +++ b/src/pcu_vty.c @@ -246,7 +246,7 @@ static int config_write_pcu(struct vty *vty) } } - if (bts->gb_dialect_sns) + if (bts->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); @@ -1131,11 +1131,9 @@ DEFUN_USRATTR(cfg_pcu_gb_dialect, struct gprs_rlcmac_bts *bts = bts_main_data(); if (!strcmp(argv[0], "ip-sns")) { - bts->gb_dialect_sns = true; - gprs_ns2_vty_force_vc_mode(true, NS2_VC_MODE_ALIVE, "gb-dialect is ip-sns"); + bts->ns_dialect = NS2_DIALECT_SNS; } else { - bts->gb_dialect_sns = false; - gprs_ns2_vty_force_vc_mode(false, 0, NULL); + bts->ns_dialect = NS2_DIALECT_IPACCESS; } return CMD_SUCCESS; -- cgit v1.2.3