/* Synchronous API to check presence and compatibility of the WINC image that is stored in the inactive flash partition. This is the image that would run on the WINC IC if m2m_ota_switch_firmware or m2m_ota_rollback were called, followed by a reset of the WINC IC.  */
sint8 m2m_wifi_check_ota_rb(void)
/* Synchronous API to check presence and compatibility of the WINC image that is stored in the inactive flash partition. This is the image that would run on the WINC IC if m2m_ota_switch_firmware or m2m_ota_rollback were called, followed by a reset of the WINC IC.  */
sint8 m2m_wifi_check_ota_rb(void)
{
	sint8 ret = M2M_SUCCESS;
	uint16 ota_hif_info = 0;
	ret = nm_get_hif_info(NULL, &ota_hif_info);
	if(ret == M2M_SUCCESS)
	{
		ret = hif_check_compatibility(ota_hif_info);
	}
	return ret;
}