summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2022-02-24 12:55:00 +0100
committerJohannes Berg <johannes.berg@intel.com>2022-03-15 11:50:33 +0100
commitdde78aa520155316f31fca1b0f4dfcb779151799 (patch)
tree03525e79b5faf78c1c6aafdd42f07e99eed3ecb1 /net/mac80211
parentc9eb90a56842a95351ee2d03933b1d8e36addc38 (diff)
downloadlinux-dde78aa520155316f31fca1b0f4dfcb779151799.tar.gz
linux-dde78aa520155316f31fca1b0f4dfcb779151799.tar.bz2
linux-dde78aa520155316f31fca1b0f4dfcb779151799.zip
mac80211: update bssid_indicator in ieee80211_assign_beacon
Update bssid_indicator in ieee80211_bss_conf according to the number of bssid in the set. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://lore.kernel.org/r/f92317e002fca9933f05a445fcefb4f53291d601.1645702516.git.lorenzo@kernel.org Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/cfg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 072eccbf1bae..ba752539d1d9 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1071,6 +1071,9 @@ static int ieee80211_assign_beacon(struct ieee80211_sub_if_data *sdata,
new->mbssid_ies = (void *)pos;
pos += struct_size(new->mbssid_ies, elem, mbssid->cnt);
ieee80211_copy_mbssid_beacon(pos, new->mbssid_ies, mbssid);
+ /* update bssid_indicator */
+ sdata->vif.bss_conf.bssid_indicator =
+ ilog2(__roundup_pow_of_two(mbssid->cnt + 1));
}
if (csa) {