check for legacy variant instead of caf

Change-Id: Idebe6356d14abc12cb6b80762514a6ed448aced7