Skip to contentSkip to conversation

ath9k: Enable Short GI in 20 Mhz for ar9287 and later chips

PATCH In review Vasanthakumar Thiagarajan 1 participant 2 messages Jun 2, 2010 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ath9k: Enable Short GI in 20 Mhz for ar9287 and later chips

This patch enables short GI rx at all rates and tx at mcs15 for 20 Mhz channel width also.

---

V2 Update respective rate count

 drivers/net/wireless/ath/ath9k/hw.c   |    3 +
 drivers/net/wireless/ath/ath9k/hw.h   |    1 +
 drivers/net/wireless/ath/ath9k/init.c |    3 +
 drivers/net/wireless/ath/ath9k/rc.c   |  177 ++++++++++++++++++---------------
 4 files changed, 103 insertions(+), 81 deletions(-)
drivers/net/wireless/ath/ath9k/hw.c +3 -0
index c33f17d..1985d19 100644
@@ -2232,6 +2232,9 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
 	if (AR_SREV_9300_20_OR_LATER(ah))
 		pCap->hw_caps |= ATH9K_HW_CAP_RAC_SUPPORTED;
 
+	if (AR_SREV_9287_10_OR_LATER(ah))
+		pCap->hw_caps |= ATH9K_HW_CAP_SGI_20;
+
 	return 0;
 }
 
drivers/net/wireless/ath/ath9k/hw.h +1 -0
index 77245df..a95e88d 100644
@@ -199,6 +199,7 @@ enum ath9k_hw_caps {
 	ATH9K_HW_CAP_RAC_SUPPORTED		= BIT(18),
 	ATH9K_HW_CAP_LDPC			= BIT(19),
 	ATH9K_HW_CAP_FASTCLOCK			= BIT(20),
+	ATH9K_HW_CAP_SGI_20			= BIT(21),
 };
 
 enum ath9k_capability_type {
drivers/net/wireless/ath/ath9k/init.c +3 -0
index d457cb3..f388dcc 100644
@@ -208,6 +208,9 @@ static void setup_ht_cap(struct ath_softc *sc,
 	if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_LDPC)
 		ht_info->cap |= IEEE80211_HT_CAP_LDPC_CODING;
 
+	if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_SGI_20)
+		ht_info->cap |= IEEE80211_HT_CAP_SGI_20;
+
 	ht_info->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K;
 	ht_info->ampdu_density = IEEE80211_HT_MPDU_DENSITY_8;
 
drivers/net/wireless/ath/ath9k/rc.c +96 -81

317 lines not on this page · raw message

Signature · 1 line
1.7.0.4