linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/8] ath9k_hw: use standard SIFS time as reference for half/quarter channels
@ 2012-04-16 21:09 Felix Fietkau
  2012-04-16 21:09 ` [PATCH v2 2/8] ath9k_hw: increase ACK timeout " Felix Fietkau
  0 siblings, 1 reply; 10+ messages in thread
From: Felix Fietkau @ 2012-04-16 21:09 UTC (permalink / raw)
  To: linux-wireless; +Cc: linville, mcgrof

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
 drivers/net/wireless/ath/ath9k/hw.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 373cef6..122447c 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -992,6 +992,11 @@ void ath9k_hw_init_global_settings(struct ath_hw *ah)
 		rx_lat = 37;
 	tx_lat = 54;
 
+	if (IS_CHAN_5GHZ(chan))
+		sifstime = 16;
+	else
+		sifstime = 10;
+
 	if (IS_CHAN_HALF_RATE(chan)) {
 		eifs = 175;
 		rx_lat *= 2;
@@ -999,8 +1004,8 @@ void ath9k_hw_init_global_settings(struct ath_hw *ah)
 		if (IS_CHAN_A_FAST_CLOCK(ah, chan))
 		    tx_lat += 11;
 
+		sifstime *= 2;
 		slottime = 13;
-		sifstime = 32;
 	} else if (IS_CHAN_QUARTER_RATE(chan)) {
 		eifs = 340;
 		rx_lat = (rx_lat * 4) - 1;
@@ -1008,8 +1013,8 @@ void ath9k_hw_init_global_settings(struct ath_hw *ah)
 		if (IS_CHAN_A_FAST_CLOCK(ah, chan))
 		    tx_lat += 22;
 
+		sifstime *= 4;
 		slottime = 21;
-		sifstime = 64;
 	} else {
 		if (AR_SREV_9287(ah) && AR_SREV_9287_13_OR_LATER(ah)) {
 			eifs = AR_D_GBL_IFS_EIFS_ASYNC_FIFO;
@@ -1023,10 +1028,6 @@ void ath9k_hw_init_global_settings(struct ath_hw *ah)
 		tx_lat = MS(reg, AR_USEC_TX_LAT);
 
 		slottime = ah->slottime;
-		if (IS_CHAN_5GHZ(chan))
-			sifstime = 16;
-		else
-			sifstime = 10;
 	}
 
 	/* As defined by IEEE 802.11-2007 17.3.8.6 */
-- 
1.7.3.2


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

end of thread, other threads:[~2012-04-17 11:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-16 21:09 [PATCH v2 1/8] ath9k_hw: use standard SIFS time as reference for half/quarter channels Felix Fietkau
2012-04-16 21:09 ` [PATCH v2 2/8] ath9k_hw: increase ACK timeout " Felix Fietkau
2012-04-16 21:09   ` [PATCH v2 3/8] ath9k_hw: set the PHY mode for half/quarter channels on AR9003 Felix Fietkau
2012-04-16 21:09     ` [PATCH v2 4/8] ath9k_hw: increase symbol overlap window for half/quarter channels Felix Fietkau
2012-04-16 21:09       ` [PATCH v2 5/8] ath9k_hw: fix and clean up PHY activation delay Felix Fietkau
2012-04-16 21:09         ` [PATCH v2 6/8] ath9k_hw: disable Tx IQ calibration on half/quarter channels Felix Fietkau
2012-04-16 21:09           ` [PATCH v2 7/8] ath9k_hw: disable fast channel change when changing from/to half/quarter mode Felix Fietkau
2012-04-16 21:09             ` [PATCH v2 8/8] ath9k_hw: increase tx abort timeout for half/quarter channels Felix Fietkau
2012-04-17  4:01             ` [PATCH v2 7/8] ath9k_hw: disable fast channel change when changing from/to half/quarter mode Sujith Manoharan
2012-04-17 11:06               ` Felix Fietkau

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