All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] [PATCH] ath9k: Fix enabling OFDM weak signal detection
@ 2009-07-09 21:12 ` Steven Luo
  0 siblings, 0 replies; 17+ messages in thread
From: Steven Luo @ 2009-07-09 21:12 UTC (permalink / raw)
  To: 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 at 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] 17+ messages in thread

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

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.