linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ath9k: apply coverage class on slottime too
@ 2012-10-30 12:07 Simon Wunderlich
  2012-10-30 12:43 ` Felix Fietkau
  0 siblings, 1 reply; 10+ messages in thread
From: Simon Wunderlich @ 2012-10-30 12:07 UTC (permalink / raw)
  To: linux-wireless
  Cc: ath9k-devel, linville, mcgrof, nbd, sven, mathias.kretschmer,
	Simon Wunderlich

From: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>

According to 802.11-2007 17.3.8.6 (slot time), the slot time should
be increased by 3 us * coverage class. The code only increased the
ack timeout, which is fixed by this patch.

We have noticed in our long shot scenario that we see less collisions
with this patch.

Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
[add standard reference and commit message]
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
---
 drivers/net/wireless/ath/ath9k/hw.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 71cd9f0..1a3d483 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1114,7 +1114,8 @@ void ath9k_hw_init_global_settings(struct ath_hw *ah)
 	}
 
 	/* As defined by IEEE 802.11-2007 17.3.8.6 */
-	acktimeout = slottime + sifstime + 3 * ah->coverage_class + ack_offset;
+	slottime += 3 * ah->coverage_class;
+	acktimeout = slottime + sifstime + ack_offset;
 	ctstimeout = acktimeout;
 
 	/*
-- 
1.7.10


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

end of thread, other threads:[~2013-04-22 18:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-30 12:07 [PATCH] ath9k: apply coverage class on slottime too Simon Wunderlich
2012-10-30 12:43 ` Felix Fietkau
2012-10-30 13:00   ` Mathias Kretschmer
2012-10-30 13:24     ` Felix Fietkau
2012-10-31 10:47       ` Mathias Kretschmer
2012-11-28 12:06       ` Simon Wunderlich
2012-12-07 12:35   ` Mathias Kretschmer
2013-04-22 10:08     ` Simon Wunderlich
2013-04-22 10:15       ` Felix Fietkau
2013-04-22 18:38         ` John W. Linville

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).