diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-03-27 14:30:12 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-08 09:16:56 +0200 |
commit | 1cd8e88e17729f57a9c7f751103e522596bb5de2 (patch) | |
tree | c20e4a7bed65480cea84f6a38bb4d0d44dd115f0 /net/mac80211/ibss.c | |
parent | mac80211: remove unused IE pointers from parser (diff) | |
download | linux-1cd8e88e17729f57a9c7f751103e522596bb5de2.tar.xz linux-1cd8e88e17729f57a9c7f751103e522596bb5de2.zip |
mac80211: check DSSS params IE length in parser
It's always just one byte, so check for that and
remove the length field from the parser struct.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ibss.c')
-rw-r--r-- | net/mac80211/ibss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index 5ab32e2a7b56..2a0b2186d98f 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -463,7 +463,7 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata, struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; bool rates_updated = false; - if (elems->ds_params && elems->ds_params_len == 1) + if (elems->ds_params) freq = ieee80211_channel_to_frequency(elems->ds_params[0], band); else |