Fix numerous "FAILED verification" messages on AR5210 and AR5211
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Tue, 23 Mar 2010 04:26:37 +0000 (04:26 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Tue, 23 Mar 2010 04:26:37 +0000 (04:26 +0000)
Only call ath_hal_verify_default_intmit() if interference mitigation is
supported by the chipset.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4124 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath/if_ath.c

index 40f5cd71b51168b9b595320cbfaab76c5625d9f0..68db5ae90f861647a716a7c6c7ad996c098ff0ed 100644 (file)
@@ -1680,7 +1680,8 @@ static inline void ath_override_intmit_if_disabled(struct ath_softc *sc)
                ath_hal_restore_default_intmit(sc->sc_ah);
        /* Sanity check... remove later. */
        if (!sc->sc_useintmit) {
-               ath_hal_verify_default_intmit(sc->sc_ah);
+               if (sc->sc_hasintmit)
+                       ath_hal_verify_default_intmit(sc->sc_ah);
                /* If we don't have int. mit. and we don't have DFS on channel,
                 * it is safe to filter error packets. */
                if (!ath_radar_is_dfs_required(sc, &sc->sc_curchan)) {