aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-octphy/l1_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bts-octphy/l1_if.c')
-rw-r--r--src/osmo-bts-octphy/l1_if.c5
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);