fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/42348?usp=email )
Change subject: s1gw: f_ConnHdlr_s1ap_setup(): make SupportedTAs configurable ......................................................................
s1gw: f_ConnHdlr_s1ap_setup(): make SupportedTAs configurable
Change-Id: Iade1889a702ef75859c5f847961ee4ca2398d4e1 Related: SYS#7052 --- M s1gw/S1GW_ConnHdlr.ttcn 1 file changed, 12 insertions(+), 12 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/48/42348/1
diff --git a/s1gw/S1GW_ConnHdlr.ttcn b/s1gw/S1GW_ConnHdlr.ttcn index 615f13e..d1f830b 100644 --- a/s1gw/S1GW_ConnHdlr.ttcn +++ b/s1gw/S1GW_ConnHdlr.ttcn @@ -72,6 +72,14 @@ iE_Extensions := omit }
+const SupportedTAs c_SupportedTAs := { + { + tAC := '0000'O, + broadcastPLMNs := { '00f110'O }, + iE_Extensions := omit + } +}; + const TargetID c_TargetID := { targeteNB_ID := { global_ENB_ID := { @@ -245,21 +253,13 @@ } }
-function f_ConnHdlr_s1ap_setup(Global_ENB_ID genb_id, float Tval := 5.0) runs on ConnHdlr { +function f_ConnHdlr_s1ap_setup(Global_ENB_ID genb_id, + in SupportedTAs supported_tas := c_SupportedTAs, + float Tval := 5.0) runs on ConnHdlr { var S1AP_PDU pdu; timer T;
- var SupportedTAs supported_tas_dummy := { - { - tAC := '0000'O, - broadcastPLMNs := { '00f000'O }, - iE_Extensions := omit - } - }; - - f_ConnHdlr_tx_s1ap_from_enb(ts_S1AP_SetupReq(genb_id, - supported_tas_dummy, - v32)); + f_ConnHdlr_tx_s1ap_from_enb(ts_S1AP_SetupReq(genb_id, supported_tas, v32)); T.start(Tval); alt { [] S1AP_CONN.receive(S1APSRV_Event:S1APSRV_EVENT_CONN_UP) { repeat; }