/* Filling PDU */
pdu = (uint8_t *)pduInfo->pduData;
- msgLen = 51;
+ msgLen = 52;
/* For UL User data
MAC subheader format is R/F/LCId/L (2/3 bytes)
LCId is 4 for DRB1
L is length of PDU i.e 50 bytes
From 38.321 section 6.1.1
+ From 38.322 section 6.2.2.4, 6.2.2.3 for AM, UM Header
*/
- uint8_t ulMsg[] = {4, msgLen, 0, 69, 0, 0, 50, 0, 0, 0, 0, 0, 1, 0, 0, 192, 168, 130, 81, 192, 168, 130, 82, 84, 104,
- 105, 115, 32, 105, 115, 32, 69, 71, 84, 80, 32, 100, 97, 116, 97, 32, 102, 114, 111, 109, 32, 68, 85, 0, 0, 0, 0, 0};
- msgLen += 2; /* 2bytes of header */
- memcpy(pdu, &ulMsg, msgLen);
- byteIdx += msgLen; /* 2 bytes of header */
+ /* Below ulMsg supports 12bit SN for UM mode */
+ /* SI SN */
+ uint8_t ulMsg[] = {4, msgLen, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 1, 0, 0, 192, 168, 130, 81, 192, 168, 130, 82, 84, 104,
+ 105, 115, 32, 105, 115, 32, 69, 71, 84, 80, 32, 100, 97, 116, 97, 32, 102, 114, 111, 109, 32, 68, 85, 0, 0, 0, 0, 0};
+ msgLen += 2; /* 2bytes of header */
+ memcpy(pdu, &ulMsg, msgLen);
+ byteIdx += msgLen; /* 2 bytes of header */
/* Filling MAC SDU for Padding bytes*/
if(byteIdx < pduInfo->pdu_length)
fillMsgHeader(&rxDataInd->header, FAPI_RX_DATA_INDICATION, msgLen);
/* Send Message to peer */
- while(cnt < 200)
+ while(cnt < 2)
{
DU_LOG("\nDEBUG --> PHY STUB : Sending UL User Data[%d] at sfn %d slot %d", cnt+1, sfnValue, slotValue);
/* Sending Rx data indication to MAC */