ath9k: add ath_hw to ath_spec_scan_priv
spectral code mostly depends on ath_hw, not on ath_softc Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
c10b75af43
commit
dd7657be75
@@ -351,6 +351,7 @@ static void ath9k_init_misc(struct ath_softc *sc)
|
|||||||
if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_ANT_DIV_COMB)
|
if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_ANT_DIV_COMB)
|
||||||
sc->ant_comb.count = ATH_ANT_DIV_COMB_INIT_COUNT;
|
sc->ant_comb.count = ATH_ANT_DIV_COMB_INIT_COUNT;
|
||||||
|
|
||||||
|
sc->spec_priv.ah = sc->sc_ah;
|
||||||
sc->spec_priv.spec_config.enabled = 0;
|
sc->spec_priv.spec_config.enabled = 0;
|
||||||
sc->spec_priv.spec_config.short_repeat = true;
|
sc->spec_priv.spec_config.short_repeat = true;
|
||||||
sc->spec_priv.spec_config.count = 8;
|
sc->spec_priv.spec_config.count = 8;
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ struct ath_ht20_40_fft_packet {
|
|||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
struct ath_spec_scan_priv {
|
struct ath_spec_scan_priv {
|
||||||
|
struct ath_hw *ah;
|
||||||
/* relay(fs) channel for spectral scan */
|
/* relay(fs) channel for spectral scan */
|
||||||
struct rchan *rfs_chan_spec_scan;
|
struct rchan *rfs_chan_spec_scan;
|
||||||
enum spectral_mode spectral_mode;
|
enum spectral_mode spectral_mode;
|
||||||
|
|||||||
Reference in New Issue
Block a user