debug log: log Cipher Mode info upon sending down RSL/A-bis

Change-Id: I7f7ec44887f6b40fdce8d348e9e9bd200fe0b689
This commit is contained in:
Neels Hofmeyr 2017-12-14 03:50:26 +01:00
parent 64c2920620
commit 8c6301cf0d
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,7 @@
#include <osmocom/bsc/debug.h>
#include <osmocom/bsc/trau_mux.h>
#include <osmocom/bsc/gsm_04_08_utils.h>
#include <osmocom/bsc/bsc_subscriber.h>
#include <osmocom/gsm/protocol/gsm_08_08.h>
#include <osmocom/gsm/gsm48.h>
@ -730,6 +731,9 @@ int gsm0808_cipher_mode(struct gsm_subscriber_connection *conn, int cipher,
return -1;
}
LOGP(DRSL, LOGL_DEBUG, "(subscr %s) Cipher Mode: cipher=%d key=%s include_imeisv=%d\n",
bsc_subscr_name(conn->bsub), cipher, osmo_hexdump_nospc(key, len), include_imeisv);
conn->lchan->encr.alg_id = RSL_ENC_ALG_A5(cipher);
if (key) {
conn->lchan->encr.key_len = len;