aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/htc_drv_main.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2010-05-17 02:31:19 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-02 16:13:16 -0400
commitb4dec5e8f5c02f75d8c08dd377193f73b553bfe2 (patch)
tree1e3a16548d419acd84fde9ae5edac85a620d276b /drivers/net/wireless/ath/ath9k/htc_drv_main.c
parent2c76ef89b05654457555a1458ccf2aa8eec5fc50 (diff)
ath9k_htc: Enable SGI in HT20 for AR9271
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index 80feeb3a6bf0..6d464237d13a 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -367,9 +367,12 @@ static void ath9k_htc_setup_rate(struct ath9k_htc_priv *priv,
367 caps = WLAN_RC_HT_FLAG; 367 caps = WLAN_RC_HT_FLAG;
368 if (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) 368 if (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40)
369 caps |= WLAN_RC_40_FLAG; 369 caps |= WLAN_RC_40_FLAG;
370 if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) 370 if (conf_is_ht40(&priv->hw->conf) &&
371 (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40))
372 caps |= WLAN_RC_SGI_FLAG;
373 else if (conf_is_ht20(&priv->hw->conf) &&
374 (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20))
371 caps |= WLAN_RC_SGI_FLAG; 375 caps |= WLAN_RC_SGI_FLAG;
372
373 } 376 }
374 377
375 trate->sta_index = ista->index; 378 trate->sta_index = ista->index;