Make sure radar is not enabled if disabled by iwpriv, flag IEEE80211_F_DOTH is unset
authormtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 9 Apr 2008 20:02:37 +0000 (20:02 +0000)
committermtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 9 Apr 2008 20:02:37 +0000 (20:02 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3482 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath/if_ath_radar.c

index 44d91fbea263f36bb915b781ea255d16bf85092f..2958187f3098d7a96ce4788d17d8262241d1ce28 100644 (file)
@@ -237,7 +237,8 @@ int ath_radar_update(struct ath_softc *sc)
                DPRINTF(sc, ATH_DEBUG_DOTH, "%s: %s: channel required "
                        "corrections to private flags.\n", 
                        DEV_NAME(dev), __func__);
-       required = ath_radar_is_dfs_required(sc, &sc->sc_curchan);
+       required = ath_radar_is_dfs_required(sc, &sc->sc_curchan) && 
+                   (ic->ic_flags & IEEE80211_F_DOTH);
        /* configure radar pulse detector register using default values, but do
         * not toggle the enable bit.  XXX: allow tweaking?? */
        ath_radar_set_params(sc, NULL);