/* To check that a particular hif message is supported with the current driver/firmware pair.  */
sint8 hif_check_code(uint8 u8Gid, uint8 u8OpCode)
/* To check that a particular hif message is supported with the current driver/firmware pair.  */
sint8 hif_check_code(uint8 u8Gid, uint8 u8OpCode)
{
	uint8 u8BlId;
	uint16 u16HifCode = ((uint16)u8Gid<<8) | u8OpCode;
	if((u16HifCode == HIFCODE_OTA_RB) || (u16HifCode == HIFCODE_OTA_SW))
	{
		return M2M_SUCCESS;
	}
	if(gu8HifBlOffset == 0)
	{
		M2M_ERR("HIF OTA rb/sw only\n");
		return M2M_ERR_SEND;
	}
	for(u8BlId = gu8HifBlOffset; u8BlId < HIF_BLACKLIST_SZ; u8BlId++)
	{
		if(u16HifCode == gau16HifBlacklist[u8BlId])
		{
			M2M_ERR("HIF message unsupported\n");
			return M2M_ERR_SEND;
		}
	}
	return M2M_SUCCESS;
}