]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/wireless/ath/ath9k/dfs.c
ath9k: DFS - consider ext_channel pulses only in HT40 mode
[linux.git] / drivers / net / wireless / ath / ath9k / dfs.c
index e98a9eaba7ff3f1b84a85945e63e901c8a216207..5025a4e91a8bd2f5b03a9d13ffbfba5afb6b3472 100644 (file)
@@ -198,7 +198,8 @@ void ath9k_dfs_process_phyerr(struct ath_softc *sc, void *data,
        sc->dfs_prev_pulse_ts = pe.ts;
        if (ard.pulse_bw_info & PRI_CH_RADAR_FOUND)
                ath9k_dfs_process_radar_pulse(sc, &pe);
-       if (ard.pulse_bw_info & EXT_CH_RADAR_FOUND) {
+       if (IS_CHAN_HT40(ah->curchan) &&
+           ard.pulse_bw_info & EXT_CH_RADAR_FOUND) {
                pe.freq += IS_CHAN_HT40PLUS(ah->curchan) ? 20 : -20;
                ath9k_dfs_process_radar_pulse(sc, &pe);
        }