From c36dc296321af23b171903fd0ad3cf8d7e552ab2 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 6 Jul 2018 19:10:54 +0200 Subject: 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 --- src/target/firmware/calypso/dsp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/target') 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; -- cgit v1.2.3