Commit 8e92d3f2 authored by Zefir Kurtisi's avatar Zefir Kurtisi Committed by John W. Linville

ath9k: add DFS pattern detector instance to ath_softc

Signed-off-by: default avatarZefir Kurtisi <zefir.kurtisi@neratec.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 6ee159e2
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "debug.h" #include "debug.h"
#include "common.h" #include "common.h"
#include "mci.h" #include "mci.h"
#include "dfs.h"
/* /*
* Header for the ath9k.ko driver core *only* -- hw code nor any other driver * Header for the ath9k.ko driver core *only* -- hw code nor any other driver
...@@ -683,6 +684,7 @@ struct ath_softc { ...@@ -683,6 +684,7 @@ struct ath_softc {
struct ath_ant_comb ant_comb; struct ath_ant_comb ant_comb;
u8 ant_tx, ant_rx; u8 ant_tx, ant_rx;
struct dfs_pattern_detector *dfs_detector;
}; };
void ath9k_tasklet(unsigned long data); void ath9k_tasklet(unsigned long data);
......
...@@ -521,6 +521,8 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, ...@@ -521,6 +521,8 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc,
atomic_set(&ah->intr_ref_cnt, -1); atomic_set(&ah->intr_ref_cnt, -1);
sc->sc_ah = ah; sc->sc_ah = ah;
sc->dfs_detector = dfs_pattern_detector_init(NL80211_DFS_UNSET);
if (!pdata) { if (!pdata) {
ah->ah_flags |= AH_USE_EEPROM; ah->ah_flags |= AH_USE_EEPROM;
sc->sc_ah->led_pin = -1; sc->sc_ah->led_pin = -1;
...@@ -825,6 +827,8 @@ static void ath9k_deinit_softc(struct ath_softc *sc) ...@@ -825,6 +827,8 @@ static void ath9k_deinit_softc(struct ath_softc *sc)
ath_tx_cleanupq(sc, &sc->tx.txq[i]); ath_tx_cleanupq(sc, &sc->tx.txq[i]);
ath9k_hw_deinit(sc->sc_ah); ath9k_hw_deinit(sc->sc_ah);
if (sc->dfs_detector != NULL)
sc->dfs_detector->exit(sc->dfs_detector);
kfree(sc->sc_ah); kfree(sc->sc_ah);
sc->sc_ah = NULL; sc->sc_ah = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment