Have you seen a doctor in regards to your ear infection? Usually they'll prescribe some antibiotic ear drops or something to resolve the issue. If that doesn't work, you may want to consider getting your wisdom teeth out but I'm not convinced yet that its causing your ear infection. It may cause some referred pain that feels like an ear ache though.