oap tests: fix after SQN scheme changes from libosmocore

In change-id Iadf43f21e0605e9e85f7e8026c40985f7ceff1a3, libosmocore changes
from incrementing SQN after tuple generation to incrementing SQN before tuple
generation. Thus we now need to pass desired_sqn - 1 to get the same tuples.

Change-Id: Ifeda71e713bb60dcd31ac651f461b714cfa39b5c
Related: OS#1968 OS#1969
This commit is contained in:
Neels Hofmeyr 2017-03-15 16:05:42 +01:00
parent c103c64e7d
commit 6dd0fc685b
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ static int oap_evaluate_challenge(const struct oap_client_state *state,
memcpy(auth.u.umts.k, state->secret_k, sizeof(auth.u.umts.k));
memcpy(auth.u.umts.opc, state->secret_opc, sizeof(auth.u.umts.opc));
memset(auth.u.umts.amf, '\0', sizeof(auth.u.umts.amf));
auth.u.umts.sqn = 42; /* TODO use incrementing sequence nr */
auth.u.umts.sqn = 41; /* TODO use incrementing sequence nr */
memset(&vec, 0, sizeof(vec));
osmo_auth_gen_vec(&vec, &auth, rx_random);