summaryrefslogtreecommitdiffstats
path: root/bts
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-10-11 15:39:04 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-10-11 15:39:04 +0200
commite00436e6d60d0a6ac5de47bdc74e95cee7e8e25e (patch)
tree5f2ea6afa52562fb536bdb5d6b557e90e5a93477 /bts
parent7460a728fca547d763674ca15a9464f8fedbd533 (diff)
bts: Sleep after requesting crypopespin/delay
Diffstat (limited to 'bts')
-rw-r--r--bts/BTS_Tests.ttcn3
1 files changed, 2 insertions, 1 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 82a54f3..be925c7 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -1399,6 +1399,7 @@ private function f_est_dchan(boolean encr_enable := false) runs on ConnHdlr {
if (encr_enable) {
var uint8_t alg_id := f_alg_id_to_l1ctl(g_pars.encr.alg_id);
f_L1CTL_CRYPTO_REQ(L1CTL, g_pars.chan_nr, alg_id, g_pars.encr.key);
+ f_sleep(2.0); /* make sure encryption is applied */
}
g_first_meas_res := true;
@@ -3863,7 +3864,7 @@ function f_TC_encr_cmd(charstring id) runs on ConnHdlr {
/* configure L1 to apply ciphering */
var uint8_t alg_id := f_alg_id_to_l1ctl(g_pars.encr.alg_id);
f_L1CTL_CRYPTO_REQ(L1CTL, g_pars.chan_nr, alg_id, g_pars.encr.key);
-
+ f_sleep(2.0); /* make sure encryption is applied */
/* send first ciphered I-frame in response and expect it on RSL */
f_data_mo(link_id, true, 1, 0, '0a0b0c0d'O, exp_sacch := true);