From fa686fd4c9601a7ded99c38e2497ce2099140e98 Mon Sep 17 00:00:00 2001 From: Andreas.Eversberg Date: Sat, 11 Sep 2010 12:10:31 +0000 Subject: [layer23 / layer1] Added interface for changing crypto mode of DSP The layer23 will now set crypto mode and key when CIPHERING MODE COMMAND is received. After crypto mode has been set, CIPHERING MODE COMPLETE is sent. NOTE: Layer1 implements only the interface, there is no functionality to it yet. --- include/l1ctl_proto.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/l1ctl_proto.h b/include/l1ctl_proto.h index 9997450..d76614b 100644 --- a/include/l1ctl_proto.h +++ b/include/l1ctl_proto.h @@ -46,6 +46,7 @@ enum { L1CTL_DM_REL_REQ, L1CTL_PARAM_REQ, L1CTL_DM_FREQ_REQ, + L1CTL_CRYPTO_REQ, }; enum ccch_mode { @@ -199,6 +200,11 @@ struct l1ctl_dm_freq_req { }; } __attribute__((packed)); +struct l1ctl_crypto_req { + uint8_t algo; + uint8_t key[0]; +} __attribute__((packed)); + struct l1ctl_pm_req { uint8_t type; uint8_t padding[3]; -- cgit v1.2.3-55-g7522