projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db7889c
)
mac80211: Remove redundant preamble and RTS flag setup in minstrel_ht
author
Helmut Schaa
<
[email protected]
>
Fri, 4 Mar 2011 12:31:31 +0000
(13:31 +0100)
committer
John W. Linville
<
[email protected]
>
Fri, 4 Mar 2011 19:06:50 +0000
(14:06 -0500)
mac80211 does the same afterwards anyway. Hence, just drop
this redundant code.
Signed-off-by: Helmut Schaa <
[email protected]
>
Acked-by: Felix Fietkau <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
net/mac80211/rc80211_minstrel_ht.c
patch
|
blob
|
history
diff --git
a/net/mac80211/rc80211_minstrel_ht.c
b/net/mac80211/rc80211_minstrel_ht.c
index 165a4518bb48eeae847fd8523829b26591cf44e7..775cf155e94b8bcbf001cce5701204e720125269 100644
(file)
--- 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,
rate->count = mr->retry_count;
rate->flags = IEEE80211_TX_RC_MCS | group->flags;
- if (txrc->short_preamble)
- rate->flags |= IEEE80211_TX_RC_USE_SHORT_PREAMBLE;
- if (txrc->rts || rtscts)
+ if (rtscts)
rate->flags |= IEEE80211_TX_RC_USE_RTS_CTS;
rate->idx = index % MCS_GROUP_RATES + (group->streams - 1) * MCS_GROUP_RATES;
}