aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-octphy
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-01-30 19:04:07 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-01-31 10:39:25 +0000
commitc1d8f5a490238afb3539402ed30c769f0447b086 (patch)
treed66988b5804567d9eff7bf8538627f961234bd53 /src/osmo-bts-octphy
parentf65b57a7071acd23ed5429df71393e76907a7283 (diff)
octphy VTY: fix vty write output for octphy's phy section
Fix invalid configuration generated by VTY 'write' command for the 'phy' section of osmo-bts-octphy. The problem was introduced during refactoring commit d784e50747b8cf0ce505489e1451f75be5ccbd4b (Sat Jan 9 13:13:37 2016 +0100, "Introduce new phy_link and phy_instance abstraction") Change-Id: Ib018e07e332aa8a6144fb2d87889032bd5fc2533
Diffstat (limited to 'src/osmo-bts-octphy')
-rw-r--r--src/osmo-bts-octphy/octphy_vty.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/osmo-bts-octphy/octphy_vty.c b/src/osmo-bts-octphy/octphy_vty.c
index e134fc59..d2dd8a6b 100644
--- a/src/osmo-bts-octphy/octphy_vty.c
+++ b/src/osmo-bts-octphy/octphy_vty.c
@@ -200,10 +200,10 @@ DEFUN(show_clk_sync_stats, show_clk_sync_stats_cmd,
void bts_model_config_write_phy(struct vty *vty, struct phy_link *plink)
{
if (plink->u.octphy.netdev_name)
- vty_out(vty, " netdev %s%s", plink->u.octphy.netdev_name,
- VTY_NEWLINE);
+ vty_out(vty, " octphy net-device %s%s",
+ plink->u.octphy.netdev_name, VTY_NEWLINE);
- vty_out(vty, " hw-addr %02x:%02x:%02x:%02x:%02x:%02x%s",
+ vty_out(vty, " octphy hw-addr %02x:%02x:%02x:%02x:%02x:%02x%s",
plink->u.octphy.phy_addr.sll_addr[0],
plink->u.octphy.phy_addr.sll_addr[1],
plink->u.octphy.phy_addr.sll_addr[2],
@@ -211,16 +211,16 @@ void bts_model_config_write_phy(struct vty *vty, struct phy_link *plink)
plink->u.octphy.phy_addr.sll_addr[4],
plink->u.octphy.phy_addr.sll_addr[5],
VTY_NEWLINE);
- vty_out(vty, " rx-gain %u%s", plink->u.octphy.rx_gain_db,
+ vty_out(vty, " octphy rx-gain %u%s", plink->u.octphy.rx_gain_db,
VTY_NEWLINE);
if (plink->u.octphy.tx_atten_flag) {
- vty_out(vty, " tx-attenuation %u%s",
+ vty_out(vty, " octphy tx-attenuation %u%s",
plink->u.octphy.tx_atten_db, VTY_NEWLINE);
} else
- vty_out(vty, " tx-attenuation oml%s", VTY_NEWLINE);
+ vty_out(vty, " octphy tx-attenuation oml%s", VTY_NEWLINE);
- vty_out(vty, " rf-port-index %u%s", plink->u.octphy.rf_port_index,
+ vty_out(vty, " octphy rf-port-index %u%s", plink->u.octphy.rf_port_index,
VTY_NEWLINE);
}