summaryrefslogtreecommitdiff
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorThomas Huehn <thomas@net.t-labs.tu-berlin.de>2012-07-02 19:46:16 +0200
committerJohannes Berg <johannes.berg@intel.com>2012-07-03 13:48:37 +0200
commite3e1a0bcb3f192fe2f95f86a74bd4e7967341e74 (patch)
treeed07b2c0a4bd814263bc1b85183ed0d1040ba274 /net/mac80211/tx.c
parentcb831b537d50d21f6afb5dffbde4cf6523627461 (diff)
downloadlinux-3.10-e3e1a0bcb3f192fe2f95f86a74bd4e7967341e74.tar.gz
linux-3.10-e3e1a0bcb3f192fe2f95f86a74bd4e7967341e74.tar.bz2
linux-3.10-e3e1a0bcb3f192fe2f95f86a74bd4e7967341e74.zip
mac80211: reduce IEEE80211_TX_MAX_RATES
IEEE80211_TX_MAX_RATES can be reduced from 5 to 4 as there is no current hardware supporting a rate chain with 5 multi rate stages (mrr), so 4 mrr stages are sufficient. The memory that is freed within the ieee80211_tx_info struct will be used in the upcoming Transmission Power Control (TPC) implementation. Suggested-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de> [reword commit message] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 364a1e7b4af..c9d2175d15c 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -959,8 +959,7 @@ ieee80211_tx_h_fragment(struct ieee80211_tx_data *tx)
info->control.rates[1].idx = -1;
info->control.rates[2].idx = -1;
info->control.rates[3].idx = -1;
- info->control.rates[4].idx = -1;
- BUILD_BUG_ON(IEEE80211_TX_MAX_RATES != 5);
+ BUILD_BUG_ON(IEEE80211_TX_MAX_RATES != 4);
info->flags &= ~IEEE80211_TX_CTL_RATE_CTRL_PROBE;
} else {
hdr->frame_control &= ~morefrags;