L1CTL_PortType: Make osmocom_l2 socket configurable as module parameter
This commit is contained in:
parent
f97649269a
commit
f68765d2e5
|
@ -16,6 +16,10 @@ module L1CTL_PortType {
|
|||
charstring err optional
|
||||
}
|
||||
|
||||
modulepar {
|
||||
charstring m_l1ctl_sock_path := "/tmp/osmocom_l2";
|
||||
}
|
||||
|
||||
function f_L1CTL_FBSB(L1CTL_PT pt, Arfcn arfcn, L1ctlCcchMode ccch_mode := CCCH_MODE_COMBINED) {
|
||||
timer T := 5.0;
|
||||
pt.send(t_L1CTL_FBSB_REQ(arfcn, t_L1CTL_FBSB_F_ALL, 0, ccch_mode, 0));
|
||||
|
@ -80,7 +84,7 @@ 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") {
|
||||
function f_connect_reset(L1CTL_PT pt, charstring l1ctl_sock_path := m_l1ctl_sock_path) {
|
||||
pt.send(L1CTL_connect:{path:=l1ctl_sock_path});
|
||||
pt.receive(L1CTL_connect_result:{result_code := SUCCESS, err:=omit});
|
||||
|
||||
|
|
Loading…
Reference in New Issue