nl80211: look for HT/VHT capabilities in beacon's tail
authorIgor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Wed, 30 Aug 2017 20:52:25 +0000 (13:52 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Sep 2017 14:25:08 +0000 (16:25 +0200)
There are no HT/VHT capabilities in cfg80211_ap_settings::beacon_ies,
these should be looked for in beacon's tail instead.

Fixes: 66cd794e3c30 ("nl80211: add HT/VHT capabilities to AP parameters")
Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c

index 8ce85420ecb0a7e45567c9c576c6bb9691eb267d..0df8023f480bb69feb4cc2d3e0df6ea95f384e1a 100644 (file)
@@ -3791,8 +3791,8 @@ static void nl80211_check_ap_rate_selectors(struct cfg80211_ap_settings *params,
 static void nl80211_calculate_ap_params(struct cfg80211_ap_settings *params)
 {
        const struct cfg80211_beacon_data *bcn = &params->beacon;
-       size_t ies_len = bcn->beacon_ies_len;
-       const u8 *ies = bcn->beacon_ies;
+       size_t ies_len = bcn->tail_len;
+       const u8 *ies = bcn->tail;
        const u8 *rates;
        const u8 *cap;