diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index 4b12c347d188..27ed80b54881 100644 --- a/drivers/net/wireless/ath/ath9k/rc.c +++ b/drivers/net/wireless/ath/ath9k/rc.c | |||
@@ -1222,11 +1222,14 @@ static u8 ath_rc_build_ht_caps(struct ath_softc *sc, struct ieee80211_sta *sta) | |||
1222 | caps |= WLAN_RC_TS_FLAG | WLAN_RC_DS_FLAG; | 1222 | caps |= WLAN_RC_TS_FLAG | WLAN_RC_DS_FLAG; |
1223 | else if (sta->ht_cap.mcs.rx_mask[1]) | 1223 | else if (sta->ht_cap.mcs.rx_mask[1]) |
1224 | caps |= WLAN_RC_DS_FLAG; | 1224 | caps |= WLAN_RC_DS_FLAG; |
1225 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) | 1225 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) { |
1226 | caps |= WLAN_RC_40_FLAG; | 1226 | caps |= WLAN_RC_40_FLAG; |
1227 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40 || | 1227 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) |
1228 | sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) | 1228 | caps |= WLAN_RC_SGI_FLAG; |
1229 | caps |= WLAN_RC_SGI_FLAG; | 1229 | } else { |
1230 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) | ||
1231 | caps |= WLAN_RC_SGI_FLAG; | ||
1232 | } | ||
1230 | } | 1233 | } |
1231 | 1234 | ||
1232 | return caps; | 1235 | return caps; |