linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ath9k: Fix enabling OFDM weak signal detection
@ 2009-07-09 21:12 Steven Luo
  2009-07-10 18:02 ` [ath9k-devel] " Luis R. Rodriguez
  2009-07-11 15:26 ` Nick Kossifidis
  0 siblings, 2 replies; 8+ messages in thread
From: Steven Luo @ 2009-07-09 21:12 UTC (permalink / raw)
  To: John W. Linville
  Cc: Luis R. Rodriguez, Jouni Malinen, Sujith Manoharan,
	Vasanthakumar Thiagarajan, Senthil Balasubramanian,
	linux-wireless, ath9k-devel

From: Steven Luo <steven@steven676.net>

It seems that OFDM weak signal detection should be enabled after an ANI
state reset, as indicated by the initial setting of ofdmWeakSigDetectOff
and what the open Atheros HAL does.  Unfortunately, the reversed sense
of ofdmWeakSigDetectOff (true if weak signal detection is NOT enabled)
seems to have resulted in a mixup here, causing weak signal detection to
be disabled.

This patch significantly improves reception and throughput from distant
stations for my AR5416-based AP running compat-wireless 2009-06-25.

Signed-off-by: Steven Luo <steven@steven676.net>
Cc: stable@kernel.org
---

--- a/drivers/net/wireless/ath/ath9k/ani.c	2009-06-24 21:14:00.000000000 -0700
+++ b/drivers/net/wireless/ath/ath9k/ani.c	2009-07-06 02:45:57.000000000 -0700
@@ -482,7 +482,7 @@ void ath9k_ani_reset(struct ath_hw *ah)
 		ath9k_hw_ani_control(ah, ATH9K_ANI_SPUR_IMMUNITY_LEVEL, 0);
 		ath9k_hw_ani_control(ah, ATH9K_ANI_FIRSTEP_LEVEL, 0);
 		ath9k_hw_ani_control(ah, ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION,
-				     !ATH9K_ANI_USE_OFDM_WEAK_SIG);
+				     ATH9K_ANI_USE_OFDM_WEAK_SIG);
 		ath9k_hw_ani_control(ah, ATH9K_ANI_CCK_WEAK_SIGNAL_THR,
 				     ATH9K_ANI_CCK_WEAK_SIG_THR);
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-07-15  4:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-09 21:12 [PATCH] ath9k: Fix enabling OFDM weak signal detection Steven Luo
2009-07-10 18:02 ` [ath9k-devel] " Luis R. Rodriguez
2009-07-11 15:23   ` Nick Kossifidis
2009-07-14 18:03   ` Luis R. Rodriguez
2009-07-14 18:11     ` Luis R. Rodriguez
2009-07-15  4:04       ` Steven Luo
2009-07-11 15:26 ` Nick Kossifidis
2009-07-11 18:48   ` Steven Luo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).