diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-19 13:22:11 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-20 16:36:26 -0400 |
commit | 7e0986c17f695952ce5d61ed793ce048ba90a661 (patch) | |
tree | aed7ba3ebffc32f192e9b990c5a0cfffb453a823 /net/mac80211/mlme.c | |
parent | ad935687dbe7307f5abd9e3f610a965a287324a9 (diff) | |
download | kernel_samsung_tuna-7e0986c17f695952ce5d61ed793ce048ba90a661.zip kernel_samsung_tuna-7e0986c17f695952ce5d61ed793ce048ba90a661.tar.gz kernel_samsung_tuna-7e0986c17f695952ce5d61ed793ce048ba90a661.tar.bz2 |
mac80211: fix basic rate bitmap calculation
"mac80211: fix basic rates setting from association response"
introduced a copy/paste error.
Unfortunately, this not just leads to wrong data being passed
to the driver but is remotely exploitable for some hardware or
driver combinations.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: stable@kernel.org [2.6.29]
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 ccfc21a..132938b 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -1366,7 +1366,7 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, for (i = 0; i < elems.ext_supp_rates_len; i++) { int rate = (elems.ext_supp_rates[i] & 0x7f) * 5; - bool is_basic = !!(elems.supp_rates[i] & 0x80); + bool is_basic = !!(elems.ext_supp_rates[i] & 0x80); if (rate > 110) have_higher_than_11mbit = true; |