summaryrefslogtreecommitdiffstats
path: root/lapdm
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 /lapdm
parent484160bf217300452166ec2eda09fed06f93e5aa (diff)
Move "connect to L1CTL and RESET" function from LAPDm_RAW_PT to L1CTL_PortType
Diffstat (limited to 'lapdm')
-rw-r--r--lapdm/LAPDm_RAW_PT.ttcn6
1 files changed, 1 insertions, 5 deletions
diff --git a/lapdm/LAPDm_RAW_PT.ttcn b/lapdm/LAPDm_RAW_PT.ttcn
index 37824d3..02b0b13 100644
--- a/lapdm/LAPDm_RAW_PT.ttcn
+++ b/lapdm/LAPDm_RAW_PT.ttcn
@@ -90,11 +90,7 @@ module LAPDm_RAW_PT {
}
private function f_init() runs on lapdm_CT {
- L1CTL.send(L1CTL_connect:{path:=l1ctl_sock_path});
- L1CTL.receive(L1CTL_connect_result:{result_code := SUCCESS, err:=omit});
-
- L1CTL.send(t_L1ctlResetReq(L1CTL_RES_T_SCHED));
- L1CTL.receive;
+ f_connect_reset(L1CTL, l1ctl_sock_path);
set_ph_state(PH_STATE_NULL);
}