From a02afb26a5a49870a8dbae26dcd45b5e1e76a457 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 13 May 2022 17:23:09 +0300 Subject: [PATCH] pycrate_osmo.L1CTL: add missing L1CTLInfoUL() to Req messages --- pycrate_osmo/L1CTL.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pycrate_osmo/L1CTL.py b/pycrate_osmo/L1CTL.py index e4e1fbd..4a7fc70 100644 --- a/pycrate_osmo/L1CTL.py +++ b/pycrate_osmo/L1CTL.py @@ -444,6 +444,7 @@ class L1CTL_H1(Envelope): class L1CTLDMEstReq(Envelope): _GEN = ( + L1CTLInfoUL(), Uint8('TSC'), Uint8('H'), Alt('L1CTL_H', GEN={ @@ -458,6 +459,7 @@ class L1CTLDMEstReq(Envelope): class L1CTLDMFreqReq(Envelope): _GEN = ( + L1CTLInfoUL(), Uint16('FN'), Uint8('TSC'), Uint8('H'), @@ -472,6 +474,7 @@ class L1CTLDMFreqReq(Envelope): # SIM auth computation class L1CTLCryptoReq(Envelope): _GEN = ( + L1CTLInfoUL(), Uint8('Algo'), Uint8('KeyLen'), Buf('Key', rep=REPR_HEX) @@ -479,8 +482,8 @@ class L1CTLCryptoReq(Envelope): def __init__(self, *args, **kwargs): Envelope.__init__(self, *args, **kwargs) - self[1].set_valauto(lambda: self[2].get_len()) - self[2].set_blauto(lambda: self[1].get_val()<<3) + self[2].set_valauto(lambda: self[3].get_len()) + self[3].set_blauto(lambda: self[2].get_val()<<3) # power measurement