Did the vet do an ear swab? That is the only way to tell if it is allergy, fungus or bacterial. Very important to know which one so it can be treated successfully. If the ears stink, I doubt if it is allergy! JMHO
Good luck treating it as I know Chili's ear are hurting.