diff options
author | Rajkumar Manoharan <rmanoharan@atheros.com> | 2010-09-03 03:11:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-07 13:54:34 -0400 |
commit | 7cf1f2dd7de98e9a18536ab885d28ecb57e76cb1 (patch) | |
tree | f07763d9732407583a3689a35810dd991fbd731a | |
parent | 102885a5d114abad8f9d4101f94ce5b28c232231 (diff) |
ath9k_htc: Enable fastcc for HTC devices.
By enabling fastcc, the scan time reduced to half.
Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index f4672073ac0a..bab894873bf5 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c | |||
@@ -137,8 +137,6 @@ static int ath9k_htc_set_channel(struct ath9k_htc_priv *priv, | |||
137 | if (priv->op_flags & OP_FULL_RESET) | 137 | if (priv->op_flags & OP_FULL_RESET) |
138 | fastcc = false; | 138 | fastcc = false; |
139 | 139 | ||
140 | /* Fiddle around with fastcc later on, for now just use full reset */ | ||
141 | fastcc = false; | ||
142 | ath9k_htc_ps_wakeup(priv); | 140 | ath9k_htc_ps_wakeup(priv); |
143 | htc_stop(priv->htc); | 141 | htc_stop(priv->htc); |
144 | WMI_CMD(WMI_DISABLE_INTR_CMDID); | 142 | WMI_CMD(WMI_DISABLE_INTR_CMDID); |
@@ -146,9 +144,10 @@ static int ath9k_htc_set_channel(struct ath9k_htc_priv *priv, | |||
146 | WMI_CMD(WMI_STOP_RECV_CMDID); | 144 | WMI_CMD(WMI_STOP_RECV_CMDID); |
147 | 145 | ||
148 | ath_print(common, ATH_DBG_CONFIG, | 146 | ath_print(common, ATH_DBG_CONFIG, |
149 | "(%u MHz) -> (%u MHz), HT: %d, HT40: %d\n", | 147 | "(%u MHz) -> (%u MHz), HT: %d, HT40: %d fastcc: %d\n", |
150 | priv->ah->curchan->channel, | 148 | priv->ah->curchan->channel, |
151 | channel->center_freq, conf_is_ht(conf), conf_is_ht40(conf)); | 149 | channel->center_freq, conf_is_ht(conf), conf_is_ht40(conf), |
150 | fastcc); | ||
152 | 151 | ||
153 | caldata = &priv->caldata[channel->hw_value]; | 152 | caldata = &priv->caldata[channel->hw_value]; |
154 | ret = ath9k_hw_reset(ah, hchan, caldata, fastcc); | 153 | ret = ath9k_hw_reset(ah, hchan, caldata, fastcc); |