diff options
author | Tim Ehlers <osmocom@ehlers.info> | 2012-02-14 23:54:25 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2012-02-14 23:54:25 +0100 |
commit | b4a8badc45a05283944859e2822a202197eed1c4 (patch) | |
tree | 0b549000918ad4539ff02bf9b31e7228bb16d955 /src/host/layer23/src/mobile/gsm48_mm.c | |
parent | 978ec28b718597b57344761a2423f4967c9343d3 (diff) |
mobile: Add vty option to force rekeying for every new channel
Written-by: Tim Ehlers <osmocom@ehlers.info>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/host/layer23/src/mobile/gsm48_mm.c')
-rw-r--r-- | src/host/layer23/src/mobile/gsm48_mm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/layer23/src/mobile/gsm48_mm.c b/src/host/layer23/src/mobile/gsm48_mm.c index 76b9c261..a8f699d2 100644 --- a/src/host/layer23/src/mobile/gsm48_mm.c +++ b/src/host/layer23/src/mobile/gsm48_mm.c @@ -2344,7 +2344,7 @@ static int gsm48_mm_tx_loc_upd_req(struct osmocom_ms *ms) /* location updating type */ nlu->type = mm->lupd_type; /* cipering key */ - nlu->key_seq = subscr->key_seq; + nlu->key_seq = gsm_subscr_get_key_seq(ms, subscr); /* LAI (last SIM stored LAI) * * NOTE: The TMSI is only valid within a LAI! @@ -2806,7 +2806,7 @@ static int gsm48_mm_tx_cm_serv_req(struct osmocom_ms *ms, int rr_prim, /* type and key */ nsr->cm_service_type = cm_serv; - nsr->cipher_key_seq = subscr->key_seq; + nsr->cipher_key_seq = gsm_subscr_get_key_seq(ms, subscr); /* classmark 2 */ cm2lv[0] = sizeof(struct gsm48_classmark2); gsm48_rr_enc_cm2(ms, (struct gsm48_classmark2 *)(cm2lv + 1), |