library/L3_Templates: remove tr_PAGING_REQ1_MI1_TMSI, use existing MI templates
Change-Id: Id35477ffc4a914e71100f129bbc4833b48ed5da4
This commit is contained in:
parent
d665c23237
commit
fb3edf951d
|
@ -381,22 +381,6 @@ template PDU_ML3_NW_MS tr_PAGING_REQ1(template MobileIdentityLV mi1 := ?,
|
|||
}
|
||||
}
|
||||
|
||||
/* Template for receiving a Paging Request Type1 message with a given TMSI in the first mobile identity. */
|
||||
template MobileIdentityLV tr_PAGING_REQ1_MI1_TMSI(octetstring tmsi) := {
|
||||
lengthIndicator := 5,
|
||||
mobileIdentityV := {
|
||||
typeOfIdentity := '100'B,
|
||||
oddEvenInd_identity := {
|
||||
tmsi_ptmsi := {
|
||||
oddevenIndicator := '0'B,
|
||||
fillerDigit := '1111'B,
|
||||
octets := tmsi
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
template PDU_ML3_NW_MS tr_PAGING_REQ2(template TMSIP_TMSI_V mi1 := ?,
|
||||
template TMSIP_TMSI_V mi2 := ?,
|
||||
template MobileIdentityTLV mi3 := *) := {
|
||||
|
|
|
@ -222,7 +222,7 @@ function f_bssgp_establish() runs on BSSGP_Client_CT {
|
|||
log("BSSGP successfully initialized");
|
||||
}
|
||||
|
||||
function f_wait_paging_req_type1(hexstring expected_tmsi) runs on dummy_CT {
|
||||
function f_wait_paging_req_type1(template (present) MobileIdentityV mi) runs on dummy_CT {
|
||||
var LAPDm_ph_data ph_data;
|
||||
timer T := 5.0;
|
||||
|
||||
|
@ -240,7 +240,7 @@ function f_wait_paging_req_type1(hexstring expected_tmsi) runs on dummy_CT {
|
|||
repeat;
|
||||
}
|
||||
|
||||
if (match(pdu, tr_PAGING_REQ1(tr_PAGING_REQ1_MI1_TMSI(hex2oct(expected_tmsi))))) {
|
||||
if (match(pdu, tr_PAGING_REQ1(tr_MI_LV(mi)))) {
|
||||
setverdict(pass);
|
||||
} else {
|
||||
repeat;
|
||||
|
@ -268,12 +268,12 @@ testcase TC_paging() runs on dummy_CT {
|
|||
/*
|
||||
TODO: Paging by IMSI does not work yet because osmo-pcu does not copy IMSI into paging requests.
|
||||
BSSGP_SIG[0].send(ts_BSSGP_PS_PAGING_IMSI(0, g_mmctx.imsi));
|
||||
f_wait_paging_req_type1(hex2oct(g_mmctx.imsi));
|
||||
f_wait_paging_req_type1(tr_MI_IMSI(g_mmctx.imsi));
|
||||
*/
|
||||
|
||||
/* Page by TMSI */
|
||||
BSSGP_SIG[0].send(ts_BSSGP_PS_PAGING_PTMSI(0, g_mmctx.imsi, tmsi));
|
||||
f_wait_paging_req_type1(tmsi_hex);
|
||||
f_wait_paging_req_type1(t_MI_TMSI(hex2oct(tmsi_hex)));
|
||||
}
|
||||
|
||||
/* Establish an UL TBF: Tune to ARFCN, send RACH, receive AGCH, enable TBF Rx */
|
||||
|
|
Loading…
Reference in New Issue