Included PHY channel parameter handling
Also, updated openairinterface5g_limits.h to match develop branch.
This commit is contained in:
@@ -1298,7 +1298,10 @@ void *ue_standalone_pnf_task(void *context)
|
||||
LOG_E(MAC, "reading from standalone pnf sctp socket failed \n");
|
||||
continue;
|
||||
}
|
||||
|
||||
/* First we'll check for possible messages from the proxy. We do this by checking
|
||||
the length of the message. This works because sizeof(uint16_t) < sizeof(nfapi_p7_message_header_t)
|
||||
and sizeof(phy_channel_params_t) < sizeof(nfapi_p7_message_header_t) and
|
||||
sizeof(uint16_t) != sizeof(phy_channel_params_t). */
|
||||
if (len == sizeof(uint16_t))
|
||||
{
|
||||
uint16_t sfn_sf = 0;
|
||||
@@ -1311,6 +1314,23 @@ void *ue_standalone_pnf_task(void *context)
|
||||
abort();
|
||||
}
|
||||
}
|
||||
else if (len == sizeof(phy_channel_params_t))
|
||||
{
|
||||
phy_channel_params_t ch_info;
|
||||
memcpy(&ch_info, buffer, sizeof(phy_channel_params_t));
|
||||
current_sfn_sf = ch_info.sfn_sf;
|
||||
if (sem_post(&sfn_semaphore) != 0)
|
||||
{
|
||||
LOG_E(MAC, "sem_post() error\n");
|
||||
abort();
|
||||
}
|
||||
uint16_t sf = ch_info.sfn_sf & 15;
|
||||
if (sf > 10 && sf < 0)
|
||||
{
|
||||
LOG_E(MAC, "sf out of bounds, sfn: %d\n", sf);
|
||||
abort();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
nfapi_p7_message_header_t header;
|
||||
|
||||
@@ -97,6 +97,13 @@ void handle_nfapi_ul_pdu_UE_MAC(module_id_t Mod_id,
|
||||
uint16_t frame,uint8_t subframe,uint8_t srs_present, int index,
|
||||
nfapi_ul_config_request_t *ul_config_req);
|
||||
|
||||
typedef struct phy_channel_params_t
|
||||
{
|
||||
uint16_t sfn_sf;
|
||||
float sinr;
|
||||
// Incomplete, need all channel parameters
|
||||
} phy_channel_params_t;
|
||||
|
||||
typedef struct nfapi_tx_req_pdu_list_t
|
||||
{
|
||||
int num_pdus; /* number .pdus[] objects */
|
||||
|
||||
Reference in New Issue
Block a user