However, a middle ear infection usually gets better on its own without treatment. To use garlic oil to treat an earache or ear infection, you can purchase it online or make a solution at home.