Skip to content

Commit

Permalink
Fixing MIB payload information
Browse files Browse the repository at this point in the history
Change-Id: I38ff567f28608da20314f29a999cb7df53b540f7
Signed-off-by: pborla <[email protected]>
  • Loading branch information
pborla committed Nov 29, 2024
1 parent 3bb3dfe commit aef8383
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/5gnrmac/lwr_mac_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1328,8 +1328,13 @@ uint32_t getParamValue(fapi_uint16_tlv_t *tlv, uint16_t type)
******************************************************************/
void setMibPdu(uint8_t *mibPdu, uint32_t *val, uint16_t sfn)
{
#ifndef OAI_TESTING
*mibPdu |= (((uint8_t)(sfn << 2)) & MIB_SFN_BITMASK);
*val = (mibPdu[0] << 24 | mibPdu[1] << 16 | mibPdu[2] << 8);
#else
*mibPdu |= ((uint8_t)((sfn >> 4) & 0x3f) << 1);
*val = (mibPdu[2] << 24 | mibPdu[1] << 16 | mibPdu[0] << 8);
#endif
DU_LOG("\nDEBUG --> LWR_MAC: MIB PDU %x", *val);
}

Expand Down

0 comments on commit aef8383

Please sign in to comment.