summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-29 12:55:06 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-29 12:55:06 +0200
commitd1209a6f04f35b1b97b539eb7d836491633a0c13 (patch)
tree46084418660e3bfae26796abf999f0b0ffa644f9 /library
parent484160bf217300452166ec2eda09fed06f93e5aa (diff)
Move "connect to L1CTL and RESET" function from LAPDm_RAW_PT to L1CTL_PortType
Diffstat (limited to 'library')
-rw-r--r--library/L1CTL_PortType.ttcn7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/L1CTL_PortType.ttcn b/library/L1CTL_PortType.ttcn
index 92d3d11..019e2a7 100644
--- a/library/L1CTL_PortType.ttcn
+++ b/library/L1CTL_PortType.ttcn
@@ -67,6 +67,13 @@ module L1CTL_PortType {
pt.send(t_L1CTL_DM_EST_REQ({ false, imm_ass.chan_desc.arfcn }, imm_ass.chan_desc.chan_nr, imm_ass.chan_desc.tsc));
}
+ function f_connect_reset(L1CTL_PT pt, charstring l1ctl_sock_path := "/tmp/osmocom_l2") {
+ pt.send(L1CTL_connect:{path:=l1ctl_sock_path});
+ pt.receive(L1CTL_connect_result:{result_code := SUCCESS, err:=omit});
+
+ pt.send(t_L1ctlResetReq(L1CTL_RES_T_SCHED));
+ pt.receive;
+ }
private function L1CTL_to_UD_connect(in L1CTL_connect pin, out UD_connect pout) {
pout.path := pin.path;