diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-14 13:36:02 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-18 11:54:57 +0100 |
commit | 113fb419eca550a187253ac346bf20538bab4b25 (patch) | |
tree | 29874a7cc079b38798f4b72897e0a2b42b05c6ab /src/pcu_vty.c | |
parent | 54b159aab91ac0c02c6680f34b1d27688d2f5ca5 (diff) |
Move ns_dialect field from BTS to PCU
Change-Id: Iffb22b776b91f93d6d2a7ccfa47deeecc22c33f0
Diffstat (limited to 'src/pcu_vty.c')
-rw-r--r-- | src/pcu_vty.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/pcu_vty.c b/src/pcu_vty.c index 3abfba79..b0c941d9 100644 --- a/src/pcu_vty.c +++ b/src/pcu_vty.c @@ -243,7 +243,7 @@ static int config_write_pcu(struct vty *vty) } } - 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 @@ DEFUN_USRATTR(cfg_pcu_gb_dialect, "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; |