-/**
- *
- * @brief
- * Handler for calculating the Length Indicator (LI) length for a SDU
- *
- * @detail:
- * This function is used to calculate the LI (Length Indicator) length
- * which has to be substracted from the pduSize to correctly match the
- * formed PDU(s) size with the size requested by MAC.
- *
- * @param[in] gCb RLC instance control block
- * @param[in] numLi Number of LIs already present
- * @param[in] msgLen Size of the SDU
- * @param[in/out] pduSz Size of the pDU to be formed
- *
- * @return void
- */
-void rlcUtlCalcLiForSdu(RlcCb *gCb, uint16_t numLi, MsgLen msgLen, int16_t *pduSz)
-{
- if ( (*pduSz > msgLen) && (msgLen < RLC_2K_BYTE))
- {
- if(0 == (numLi & RLC_BIT0)) /* check if number of LIs are odd or even */
- {
- /* if number of LI's are even 2 bytes needed */
- *pduSz -= 2;
- }
- else
- {
- /* if number of LI's are odd one byte needed */
- *pduSz -= 1;
- }
- }
- return;
-}
-