summaryrefslogtreecommitdiffstats
path: root/src/target
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-07-06 19:10:54 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-07-06 19:11:00 +0200
commitc36dc296321af23b171903fd0ad3cf8d7e552ab2 (patch)
tree06da463923bcd8ae9b51a516cce70a32c38bf5c0 /src/target
parentce772ce3380ea97d615aebcec1b44d066b37c4e2 (diff)
calypso: Print warning about unsupported encryption algorithms
Unfortunately current code architecture doesn't support a return path with an error so tell the caller of L1CTL on the other side that something's wrong. Change-Id: Ib9b622dd5c9770c5e97fa58deee124a409544d3b
Diffstat (limited to 'src/target')
-rw-r--r--src/target/firmware/calypso/dsp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/firmware/calypso/dsp.c b/src/target/firmware/calypso/dsp.c
index c37ca829..235d359b 100644
--- a/src/target/firmware/calypso/dsp.c
+++ b/src/target/firmware/calypso/dsp.c
@@ -568,6 +568,9 @@ void dsp_load_ciph_param(int mode, uint8_t *key)
{
dsp_api.ndb->d_a5mode = mode;
+ if (mode >= 3) /* Only A5/0, A5/1, A5/2 are supported by calypso */
+ printd("Algo A5/%u is not supported!!!\n", mode);
+
if (!mode || !key)
return;