Commit ff9a27ae authored by gauthier's avatar gauthier

ul / dl count to seq num

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5334 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 33db5335
......@@ -468,8 +468,15 @@ void emm_as_set_security_data(emm_as_security_data_t *data, const void *args,
);
data->is_new = is_new;
data->ksi = context->eksi;
#if defined (NAS_UE)
data->sqn = context->ul_count.seq_num;
data->count = *(UInt32_t *)(&context->ul_count);
// LG data->count = *(UInt32_t *)(&context->ul_count);
data->count = 0x00000000 | (context->ul_count.overflow << 8 ) | context->ul_count.seq_num;
#else
data->sqn = context->dl_count.seq_num;
// LG data->count = *(UInt32_t *)(&context->ul_count);
data->count = 0x00000000 | (context->dl_count.overflow << 8 ) | context->dl_count.seq_num;
#endif
/* NAS integrity and cyphering keys may not be available if the
* current security context is a partial EPS security context
* and not a full native EPS security context */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment