Commit 5afc71f3 authored by Cedric Roux's avatar Cedric Roux

bugfix: fix featureGroup

- allocate memory, memory on stack does not survive the function
- avoid uint32_t, use a char buffer, for endianness neutrality
parent e3d39a01
...@@ -2577,18 +2577,17 @@ OAI_UECapability_t *fill_ue_capability(char *UE_EUTRA_Capability_xer_fname) ...@@ -2577,18 +2577,17 @@ OAI_UECapability_t *fill_ue_capability(char *UE_EUTRA_Capability_xer_fname)
// UE_EUTRA_Capability->measParameters.bandListEUTRA.list.count = 0; // no measurements on other bands // UE_EUTRA_Capability->measParameters.bandListEUTRA.list.count = 0; // no measurements on other bands
// UE_EUTRA_Capability->featureGroupIndicators // null // UE_EUTRA_Capability->featureGroupIndicators // null
// featureGroup is mandatory for CMW tests
// featureGroup is filled only for usim-test mode
BIT_STRING_t *bit_string;
uint32_t featrG;
bit_string = CALLOC(1, sizeof(*bit_string));
featrG = 0x04000800;
if(usim_test == 1) if(usim_test == 1)
{ {
bit_string->buf = &featrG; // featureGroup is mandatory for CMW tests
bit_string->size = 4; // featureGroup is filled only for usim-test mode
bit_string->bits_unused = 0; BIT_STRING_t *bit_string = CALLOC(1, sizeof(*bit_string));
UE_EUTRA_Capability->featureGroupIndicators = bit_string; char featrG[4] = { 0x00, 0x08, 0x00, 0x04 };
bit_string->buf = CALLOC(1, 4);
memcpy(bit_string->buf, featrG, 4);
bit_string->size = 4;
bit_string->bits_unused = 0;
UE_EUTRA_Capability->featureGroupIndicators = bit_string;
} }
// UE_EUTRA_Capability->interRAT_Parameters // null // UE_EUTRA_Capability->interRAT_Parameters // null
......
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