aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorHelmut Schaa <helmut.schaa@googlemail.com>2011-03-04 07:31:31 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-03-04 14:06:50 -0500
commit9d468d2269b64222a706f52b965998ee64d0b4bf (patch)
tree5acfa25eddc358909630a96879ca60bf6b17acaf /net/mac80211
parentdb7889cda3571bfd0d3a3fc79ca0cd16bb321ff2 (diff)
mac80211: Remove redundant preamble and RTS flag setup in minstrel_ht
mac80211 does the same afterwards anyway. Hence, just drop this redundant code. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Acked-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/rc80211_minstrel_ht.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c
index 165a4518bb48..775cf155e94b 100644
--- a/net/mac80211/rc80211_minstrel_ht.c
+++ b/net/mac80211/rc80211_minstrel_ht.c
@@ -519,9 +519,7 @@ minstrel_ht_set_rate(struct minstrel_priv *mp, struct minstrel_ht_sta *mi,
519 rate->count = mr->retry_count; 519 rate->count = mr->retry_count;
520 520
521 rate->flags = IEEE80211_TX_RC_MCS | group->flags; 521 rate->flags = IEEE80211_TX_RC_MCS | group->flags;
522 if (txrc->short_preamble) 522 if (rtscts)
523 rate->flags |= IEEE80211_TX_RC_USE_SHORT_PREAMBLE;
524 if (txrc->rts || rtscts)
525 rate->flags |= IEEE80211_TX_RC_USE_RTS_CTS; 523 rate->flags |= IEEE80211_TX_RC_USE_RTS_CTS;
526 rate->idx = index % MCS_GROUP_RATES + (group->streams - 1) * MCS_GROUP_RATES; 524 rate->idx = index % MCS_GROUP_RATES + (group->streams - 1) * MCS_GROUP_RATES;
527} 525}