1955568607658ea347084e459b530f86ef77b394
[openwrt/staging/ansuel.git] /
1 From: Lorenzo Bianconi <lorenzo@kernel.org>
2 Date: Thu, 24 Feb 2022 12:55:00 +0100
3 Subject: [PATCH] mac80211: update bssid_indicator in
4 ieee80211_assign_beacon
5
6 Update bssid_indicator in ieee80211_bss_conf according to the
7 number of bssid in the set.
8
9 Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
10 Link: https://lore.kernel.org/r/f92317e002fca9933f05a445fcefb4f53291d601.1645702516.git.lorenzo@kernel.org
11 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
12 ---
13
14 --- a/net/mac80211/cfg.c
15 +++ b/net/mac80211/cfg.c
16 @@ -1071,6 +1071,9 @@ static int ieee80211_assign_beacon(struc
17 new->mbssid_ies = (void *)pos;
18 pos += struct_size(new->mbssid_ies, elem, mbssid->cnt);
19 ieee80211_copy_mbssid_beacon(pos, new->mbssid_ies, mbssid);
20 + /* update bssid_indicator */
21 + sdata->vif.bss_conf.bssid_indicator =
22 + ilog2(__roundup_pow_of_two(mbssid->cnt + 1));
23 }
24
25 if (csa) {