From: Pablo Neira Ayuso <pablo(a)gnumonks.org>
This patch adds the E1INP_LINE_R_BTS_RSL_ONLY that brings the
RSL link without the OML link. This mode is useful for the
multi-TRX BTS setup.
---
include/osmocom/abis/e1_input.h | 1 +
src/input/ipaccess.c | 15 +++++++++++++++
2 files changed, 16 insertions(+)
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h
index fac7bac..037e353 100644
--- a/include/osmocom/abis/e1_input.h
+++ b/include/osmocom/abis/e1_input.h
@@ -123,6 +123,7 @@ enum e1inp_line_role {
E1INP_LINE_R_NONE,
E1INP_LINE_R_BSC,
E1INP_LINE_R_BTS,
+ E1INP_LINE_R_BTS_RSL_ONLY,
E1INP_LINE_R_MAX
};
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index 0fce15e..0f995e7 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -1044,6 +1044,21 @@ static int ipaccess_line_update(struct e1inp_line *line)
break;
}
}
+ case E1INP_LINE_R_BTS_RSL_ONLY:
+ switch(il->state) {
+ case NONE:
+ LOGP(DLINP, LOGL_NOTICE, "enabling ipaccess BTS mode "
+ "in RSL mode only\n");
+ ret = ipaccess_bts_rsl_link_up(line);
+ il->state = ALL_UP;
+ break;
+ default:
+ LOGP(DLINP, LOGL_ERROR, "ipaccess BTS RSL link already "
+ "up and running\n");
+ ret = -EBUSY;
+ break;
+ break;
+ }
default:
break;
}
--
1.7.10.4