diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2012-03-14 13:10:46 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-15 21:40:28 +0400 |
commit | caed6579c2f9756d3f5a95e8186fa4c04d64cae2 (patch) | |
tree | 8a31fd1db143bbddce7090b38ec222843086d8f9 /drivers/net/wireless/ath/ath9k/main.c | |
parent | bcf6f96e192d71864685ba7253c94c2002615875 (diff) | |
download | linux-caed6579c2f9756d3f5a95e8186fa4c04d64cae2.tar.xz |
ath9k_hw: Cleanup FastChannelChange
The logic to determine whether to use FCC is a bit convoluted.
Use a small helper function to decide whether FCC is to be
used.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 77c61bcd34ea..a07565c730b7 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -334,10 +334,6 @@ static int ath_reset_internal(struct ath_softc *sc, struct ath9k_channel *hchan, hchan = ah->curchan; } - if (fastcc && (ah->chip_fullsleep || - !ath9k_hw_check_alive(ah))) - fastcc = false; - if (!ath_prepare_reset(sc, retry_tx, flush)) fastcc = false; |