diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-09-03 16:42:19 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-08 14:00:18 -0400 |
commit | 9818babc8fd9a542978a235f1c1786f948cbac68 (patch) | |
tree | 68f6fcdeadbebe5616a78a0c4ec5a3430e0b6172 /net/mac80211/mlme.c | |
parent | 19c19d54b6bfa57746f3ec805d1d7951eefa353b (diff) |
mac80211: Fix low bit rate in IBSS
This patch fixes regression in iwlwifi IBSS rate scaling caused by patch:
commit 6bc37c06bc424bcf3f944e6a79e2d5bb537e02ed
Author: Vladimir Koutny <vlado@work.ksp.sk>
Date: Fri Jun 13 16:50:44 2008 +0200
mac80211: eliminate IBSS warning in rate_lowest_index()
An IBSS station is added in prepare_for_handlers where the rate scaling was
initialized only with single rate matching the received packet.
The correct rate scale information should be updated only in
ieee80211_rx_bss_info function where beacon is parsed. Because
of coding error the rate info was left untouched.
If a beacon has triggered the connection the rate remined 1Mbps.
This patch fixes this coding error
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Cc: Vladimir Koutny <vlado@work.ksp.sk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 7d53382f1a5b..75510a9f3f1d 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -2595,7 +2595,7 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata, | |||
2595 | rx_status->band); | 2595 | rx_status->band); |
2596 | 2596 | ||
2597 | prev_rates = sta->supp_rates[rx_status->band]; | 2597 | prev_rates = sta->supp_rates[rx_status->band]; |
2598 | sta->supp_rates[rx_status->band] &= supp_rates; | 2598 | sta->supp_rates[rx_status->band] = supp_rates; |
2599 | if (sta->supp_rates[rx_status->band] == 0) { | 2599 | if (sta->supp_rates[rx_status->band] == 0) { |
2600 | /* No matching rates - this should not really happen. | 2600 | /* No matching rates - this should not really happen. |
2601 | * Make sure that at least one rate is marked | 2601 | * Make sure that at least one rate is marked |