Search Linux Wireless

[PATCH] mac80211: fix rate control initialisation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx>
Bisected-by: Sitsofe Wheeler <sitsofe@xxxxxxxxx>
---
 net/mac80211/tx.c |    2 ++
 1 file changed, 2 insertions(+)

--- everything.orig/net/mac80211/tx.c	2008-06-02 09:25:05.000000000 +0200
+++ everything/net/mac80211/tx.c	2008-06-02 09:31:34.000000000 +0200
@@ -947,6 +947,8 @@ __ieee80211_tx_prepare(struct ieee80211_
 	tx->local = local;
 	tx->sdata = IEEE80211_DEV_TO_SUB_IF(dev);
 	tx->channel = local->hw.conf.channel;
+	tx->rate_idx = -1;
+	tx->last_frag_rate_idx = -1;
 	/*
 	 * Set this flag (used below to indicate "automatic fragmentation"),
 	 * it will be cleared/left by radiotap as desired.


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux