Hi Vijay,
You can find latest source code for both MAC and SMAC on the website as standalone installers. The current implementations use KSDK 1.2 (http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS-SDK) which you might find more attractive.
For the retrieval of RSSI out of LQI you could try the following code.
uint8_t lqi_to_rssi(uint8_t read_lqi)
{
uint32_t tempRSSI = read_lqi;
uint8_t comp = MC1324xDrv_IndirectAccessSPIRead(LQI_OFFSET_COMP);
//if this condition is not met, just return the lqi
if(25*(tempRSSI+comp) > 4360)
{
return read_lqi;
}
/*liniarization
4360 - 25* RSSI (4360 - 25* RSSI)*7085 >> 18;
abs(rssi)=--------------- <=>
37
*/
tempRSSI = ((4360 - 25*(tempRSSI + comp))*7085)>>18;
return (uint8_t)(0x000000FF & tempRSSI);
}
This function should return a good approximation of the absolute value of the per-packet RSSI. So, if it returns 10, that means -10dBm.
You need to feed this function with mpRxParams->linkQuality from what I see in your description.
If you read RSSI_CCA_CONT, you might not find RSSI information correlated with the most recently received packet.
I hope this helps.
Regards,
Andrei