diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-11-13 23:09:24 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-01-16 17:26:20 +0100 |
commit | bca8d3b8f83af76303fe9923955bea25ef9f7e43 (patch) | |
tree | 63bbdfc1c2cf8e2d26fb87a3250a77c595fc1381 /src/osmo-bts-octphy/l1_if.c | |
parent | a9003acb1c4c1a697115d37f7ea28c4650b9681a (diff) |
OCTPHY: Exit gracefully if config file specifies no phy-netdev
Diffstat (limited to 'src/osmo-bts-octphy/l1_if.c')
-rw-r--r-- | src/osmo-bts-octphy/l1_if.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osmo-bts-octphy/l1_if.c b/src/osmo-bts-octphy/l1_if.c index d104fa75..1ed8dee8 100644 --- a/src/osmo-bts-octphy/l1_if.c +++ b/src/osmo-bts-octphy/l1_if.c @@ -1306,6 +1306,11 @@ int l1if_open(struct octphy_hdl *fl1h) int sfd, rc; char *phy_dev = fl1h->netdev_name; + if (!phy_dev) { + LOGP(DL1C, LOGL_ERROR, "You have to specify a phy-netdev\n"); + return -EINVAL; + } + LOGP(DL1C, LOGL_NOTICE, "Opening L1 interface for OctPHY (%s)\n", phy_dev); |