ath9k_htc: set initial spec_config values
authorOleksij Rempel <linux@rempel-privat.de>
Thu, 6 Nov 2014 07:53:35 +0000 (08:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Nov 2014 21:31:15 +0000 (16:31 -0500)
use values provided by Ashish Patro <patro@cs.wisc.edu>

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_init.c

index f91b8e6b14bc9cb3b8b1b46941cc8c95d31a0480..285d0ada369fc11f908839b751966abd61e56258 100644 (file)
@@ -464,6 +464,14 @@ static void ath9k_init_misc(struct ath9k_htc_priv *priv)
 
        common->last_rssi = ATH_RSSI_DUMMY_MARKER;
        priv->ah->opmode = NL80211_IFTYPE_STATION;
+
+       priv->spec_priv.ah = priv->ah;
+       priv->spec_priv.spec_config.enabled = 0;
+       priv->spec_priv.spec_config.short_repeat = false;
+       priv->spec_priv.spec_config.count = 8;
+       priv->spec_priv.spec_config.endless = false;
+       priv->spec_priv.spec_config.period = 0x12;
+       priv->spec_priv.spec_config.fft_period = 0x02;
 }
 
 static int ath9k_init_priv(struct ath9k_htc_priv *priv,