fixed byte-endian of fiveGS-TAC IE in F1AP.
This commit is contained in:
@@ -103,7 +103,7 @@ typedef struct f1ap_setup_req_s {
|
|||||||
|
|
||||||
// Served Cell Information
|
// Served Cell Information
|
||||||
/* Tracking area code */
|
/* Tracking area code */
|
||||||
uint16_t tac[F1AP_MAX_NB_CELLS];
|
uint32_t tac[F1AP_MAX_NB_CELLS];
|
||||||
|
|
||||||
/* Mobile Country Codes
|
/* Mobile Country Codes
|
||||||
* Mobile Network Codes
|
* Mobile Network Codes
|
||||||
|
|||||||
@@ -195,9 +195,13 @@ int DU_send_F1_SETUP_REQUEST(instance_t instance) {
|
|||||||
served_cell_information.nRPCI = f1ap_du_data->nr_pci[i]; // int 0..1007
|
served_cell_information.nRPCI = f1ap_du_data->nr_pci[i]; // int 0..1007
|
||||||
|
|
||||||
/* - fiveGS_TAC */
|
/* - fiveGS_TAC */
|
||||||
|
uint8_t fiveGS_TAC[3];
|
||||||
served_cell_information.fiveGS_TAC=calloc(1,sizeof(*served_cell_information.fiveGS_TAC));
|
served_cell_information.fiveGS_TAC=calloc(1,sizeof(*served_cell_information.fiveGS_TAC));
|
||||||
|
fiveGS_TAC[0] = ((uint8_t*)&f1ap_du_data->tac[i])[2];
|
||||||
|
fiveGS_TAC[1] = ((uint8_t*)&f1ap_du_data->tac[i])[1];
|
||||||
|
fiveGS_TAC[2] = ((uint8_t*)&f1ap_du_data->tac[i])[0];
|
||||||
OCTET_STRING_fromBuf(served_cell_information.fiveGS_TAC,
|
OCTET_STRING_fromBuf(served_cell_information.fiveGS_TAC,
|
||||||
(const char*)&f1ap_du_data->tac[i],
|
(const char *)fiveGS_TAC,
|
||||||
3);
|
3);
|
||||||
|
|
||||||
/* - Configured_EPS_TAC */
|
/* - Configured_EPS_TAC */
|
||||||
@@ -715,8 +719,12 @@ int DU_send_gNB_DU_CONFIGURATION_UPDATE(instance_t instance,
|
|||||||
served_cell_information.nRPCI = f1ap_setup_req->nr_pci[i]; // int 0..1007
|
served_cell_information.nRPCI = f1ap_setup_req->nr_pci[i]; // int 0..1007
|
||||||
|
|
||||||
/* - fiveGS_TAC */
|
/* - fiveGS_TAC */
|
||||||
|
uint8_t fiveGS_TAC[3];
|
||||||
|
fiveGS_TAC[0] = ((uint8_t*)&f1ap_setup_req->tac[i])[2];
|
||||||
|
fiveGS_TAC[1] = ((uint8_t*)&f1ap_setup_req->tac[i])[1];
|
||||||
|
fiveGS_TAC[2] = ((uint8_t*)&f1ap_setup_req->tac[i])[0];
|
||||||
OCTET_STRING_fromBuf(served_cell_information.fiveGS_TAC,
|
OCTET_STRING_fromBuf(served_cell_information.fiveGS_TAC,
|
||||||
(const char *) &f1ap_setup_req->tac[i],
|
(const char *)fiveGS_TAC,
|
||||||
3);
|
3);
|
||||||
|
|
||||||
/* - Configured_EPS_TAC */
|
/* - Configured_EPS_TAC */
|
||||||
|
|||||||
Reference in New Issue
Block a user