aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-octphy
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-11-13 23:06:23 +0100
committerHarald Welte <laforge@gnumonks.org>2016-01-16 17:26:19 +0100
commita9003acb1c4c1a697115d37f7ea28c4650b9681a (patch)
treed2f2309369cd0af83413aa6980b6fc5fe10d859b /src/osmo-bts-octphy
parentdad89e50a220c9b634dd04600cfed76f4b4f7622 (diff)
OCTPHY: Ensure we write the phy-netdev parameter
When writing the config file from the command line, we must not forget to write the phy-netdev parameter, otherwise the program will fail to re-start later :/
Diffstat (limited to 'src/osmo-bts-octphy')
-rw-r--r--src/osmo-bts-octphy/octphy_vty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-bts-octphy/octphy_vty.c b/src/osmo-bts-octphy/octphy_vty.c
index 0f18e4c8..1b3a3652 100644
--- a/src/osmo-bts-octphy/octphy_vty.c
+++ b/src/osmo-bts-octphy/octphy_vty.c
@@ -155,6 +155,10 @@ void bts_model_config_write_bts(struct vty *vty, struct gsm_bts *bts)
struct gsm_bts_role_bts *btsb = bts_role_bts(bts);
struct octphy_hdl *fl1h = trx_octphy_hdl(bts->c0);
+ if (fl1h->netdev_name)
+ vty_out(vty, " phy-netdev %s%s", fl1h->netdev_name,
+ VTY_NEWLINE);
+
if (btsb->auto_band)
vty_out(vty, " auto-band%s", VTY_NEWLINE);