aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-06-02 03:38:04 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-03 15:00:28 -0400
commit5854a32e6cb672d182ce378c69f0f7470137a062 (patch)
tree9ced95720723b428655c687c5fbdda061b5d1d75
parent7fd871edf437362b62ddd807542638cbda8d8a39 (diff)
mac80211: fix rate control initialisation
In commit 2e92e6f2c50b4baf85cca968f0e6f1b5c0df7d39 ("mac80211: use rate index in TX control") I forgot to initialise a few new variables to -1 which means that the rate control algorithm is never triggered and 0 is used as the only rate index, effectively fixing the transmit bitrate at the lowest supported. This patch adds the missing initialisation. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Bisected-by: Sitsofe Wheeler <sitsofe@yahoo.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--net/mac80211/tx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 16af30811f98..332ddcb1068a 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -947,6 +947,8 @@ __ieee80211_tx_prepare(struct ieee80211_tx_data *tx,
947 tx->local = local; 947 tx->local = local;
948 tx->sdata = IEEE80211_DEV_TO_SUB_IF(dev); 948 tx->sdata = IEEE80211_DEV_TO_SUB_IF(dev);
949 tx->channel = local->hw.conf.channel; 949 tx->channel = local->hw.conf.channel;
950 tx->rate_idx = -1;
951 tx->last_frag_rate_idx = -1;
950 /* 952 /*
951 * Set this flag (used below to indicate "automatic fragmentation"), 953 * Set this flag (used below to indicate "automatic fragmentation"),
952 * it will be cleared/left by radiotap as desired. 954 * it will be cleared/left by radiotap as desired.