bugfix: fix featureGroup
- allocate memory, memory on stack does not survive the function - avoid uint32_t, use a char buffer, for endianness neutrality
This commit is contained in:
@@ -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->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)
|
||||
{
|
||||
bit_string->buf = &featrG;
|
||||
bit_string->size = 4;
|
||||
bit_string->bits_unused = 0;
|
||||
UE_EUTRA_Capability->featureGroupIndicators = bit_string;
|
||||
// featureGroup is mandatory for CMW tests
|
||||
// featureGroup is filled only for usim-test mode
|
||||
BIT_STRING_t *bit_string = CALLOC(1, sizeof(*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
|
||||
|
||||
Reference in New Issue
Block a user