aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorThomas Huehn <thomas@net.t-labs.tu-berlin.de>2012-07-02 13:46:16 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-07-03 07:48:37 -0400
commite3e1a0bcb3f192fe2f95f86a74bd4e7967341e74 (patch)
treeed07b2c0a4bd814263bc1b85183ed0d1040ba274 /net/mac80211/tx.c
parentcb831b537d50d21f6afb5dffbde4cf6523627461 (diff)
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 364a1e7b4afa..c9d2175d15c1 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -959,8 +959,7 @@ ieee80211_tx_h_fragment(struct ieee80211_tx_data *tx)
959 info->control.rates[1].idx = -1; 959 info->control.rates[1].idx = -1;
960 info->control.rates[2].idx = -1; 960 info->control.rates[2].idx = -1;
961 info->control.rates[3].idx = -1; 961 info->control.rates[3].idx = -1;
962 info->control.rates[4].idx = -1; 962 BUILD_BUG_ON(IEEE80211_TX_MAX_RATES != 4);
963 BUILD_BUG_ON(IEEE80211_TX_MAX_RATES != 5);
964 info->flags &= ~IEEE80211_TX_CTL_RATE_CTRL_PROBE; 963 info->flags &= ~IEEE80211_TX_CTL_RATE_CTRL_PROBE;
965 } else { 964 } else {
966 hdr->frame_control &= ~morefrags; 965 hdr->frame_control &= ~morefrags;